public dynamic Execute() { var repo = new AppRepository(); var categories = repo.Categories(); return(categories.Select(p => p.Name).ToArray()); }
public Category GetCategory() { var repo = new AppRepository(); return(repo.Categories() .FirstOrDefault(p => p.Id == this.Category.Id)); }