Exemplo n.º 1
0
 public async Task <IEnumerable <ShopDto> > GetShops()
 => await shopsService.GetShops();
Exemplo n.º 2
0
 public IActionResult Index()
 {
     ViewBag.Title = "Магазины";
     return(View(_mapper.Map <List <ShopModel> >(_shopsService.GetShops(_mapper))));
 }