示例#1
0
        public async Task <ActionResult> List(string name)
        {
            IEnumerable <BrandVM> brands = (await _brandManager.Brands(name)).Select(b => new BrandVM
            {
                Id   = b.Id,
                Name = b.Name
            });

            return(View(brands));
        }