internal List <MWACategory> GetCategories(string blogID, string userName, string password, string rootUrl) { List <MWACategory> categories = new List <MWACategory>(); ValidateRequest(userName, password); var repository = Ioc.Resolve <IRepository>(); var allCategories = repository.Find <Category>(); foreach (Category category in allCategories) { MWACategory temp = new MWACategory(); temp.title = category.Title; temp.description = category.Title; //cat.Description; //TODO: What is this for???? Jay //temp.htmlUrl = rootUrl + "category/" + category.Title + ".aspx"; //temp.rssUrl = rootUrl + "category/syndication.axd?category=" + category.Id; categories.Add(temp); } return(categories); }
internal List<MWACategory> GetCategories(string blogID, string userName, string password, string rootUrl) { List<MWACategory> categories = new List<MWACategory>(); ValidateRequest(userName, password); var repository = Ioc.Resolve<IRepository>(); var allCategories = repository.Find<Category>(); foreach (Category category in allCategories) { MWACategory temp = new MWACategory(); temp.title = category.Title; temp.description = category.Title; //cat.Description; //TODO: What is this for???? Jay //temp.htmlUrl = rootUrl + "category/" + category.Title + ".aspx"; //temp.rssUrl = rootUrl + "category/syndication.axd?category=" + category.Id; categories.Add(temp); } return categories; }