예제 #1
0
        public async Task <ActionResult> List(string name)
        {
            IEnumerable <CategoryVM> categories = (await _categoryManager.Categories(name)).Select(c => new CategoryVM
            {
                Id   = c.Id,
                Name = c.Name
            });

            return(View(categories));
        }