Пример #1
0
 public IHttpActionResult GetWithCategory(int id)
 {
     try
     {
         var lots = lotService.GetLotsWithCategory(id);
         return(Ok(Mapper.Map <IEnumerable <LotDTO>, List <LotModel> >(lots)));
     }
     catch (NotFoundException)
     {
         return(NotFound());
     }
 }