Exemple #1
0
 public async Task <ActionResult <List <Accommodation> > > FindAvailableAsync([FromRoute] string city, [FromRoute] string country, [FromRoute] string startdate, [FromRoute] int nights)
 {
     try
     {
         return(await _accommodationService.FindAvailableAsync(country, city, startdate, nights));
     }
     catch (Exception ex)
     {
         return(NotFound(ex.Message));
     }
 }