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)); }