I want to have a common usable function which can return Term object.
I thought of
public static TaxonomyTerm GetTaxonomyTerms(this SPSite site, string groupName, string termSetName)
{
}
TaxonomyTerm is class of having property id,name. Structure of TaxonomyTerm
public class TaxonomyTerm
{
public TaxonomyTerm()
{
this.Terms = new List<TaxonomyTerm>();
}
public Guid Id { get; set; }
public string Name { get; set; }
public List<TaxonomyTerm> Terms { get; set; }
}
I need help to write this to return the instance of this class. Thanks.