コード例 #1
0
 public async Task <ActionResult> GetLocationAccommodations(int locationId)
 {
     try
     {
         return(Ok(await _accommodationService.GetAccommodationsForLocation(locationId)));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }