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)); } }