コード例 #1
0
 public async Task <IActionResult> Get()
 {
     try
     {
         return(Ok(_mapper.Map <IEnumerable <Shop>, IEnumerable <ShopView> >(await _shopRepository.AllIncludingAsync(x => x.Company))));
     }
     catch (Exception e)
     {
         Log.Error(e, "ShopController.Get");
         return(BadRequest(_messageModelBuilder.CreateModel("500", e.Message)));
     }
 }