Beispiel #1
0
 public async Task <ActionResult <PagedTrainersDTO> > GetFavouriteTrainers(
     [FromQuery] TrainerFilterData filterData,
     [FromQuery] string userId,
     [FromQuery] int pageNumber = 1,
     [FromQuery] int pageSize   = 3)
 {
     try
     {
         return(Ok(await _trainerService.GetFavouriteTrainers(pageNumber, pageSize, userId, filterData)));
     }
     catch (Exception exception)
     {
         return(BadRequest(exception.Message));
     }
 }