public dynamic Execute()
        {
            var repo       = new AppRepository();
            var categories = repo.Categories();

            return(categories.Select(p => p.Name).ToArray());
        }
示例#2
0
        public Category GetCategory()
        {
            var repo = new AppRepository();

            return(repo.Categories()
                   .FirstOrDefault(p => p.Id == this.Category.Id));
        }