public RetrieveCategoriesById ( string id ) : Category | ||
id | string | The id of the category you wish to retrieve. |
return | Category |
public Category RetrieveCategoriesById(string id)
{
var url = Constants.CATEGORIES;
if (string.IsNullOrEmpty(id))
{
url += Constants.XML;
}
else
{
url += String.Format(Constants.Culture, "/{0}{1}", id, Constants.XML);
}
return RetrieveCategoriesByQueryString(url);
}