コード例 #1
0
 public ActionResult <List <Accommodation> > SortAvailableList([FromBody] List <Accommodation> available, [FromRoute] string sortBy, [FromRoute] string ascOrDesc)
 {
     try
     {
         return(_accommodationService.SortListOfAccommodations(available, sortBy, ascOrDesc));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }