public async Task <ActionResult <TrainerRateCreateDTO> > CreateTrainerRate([FromBody] TrainerRateCreateDTO rate) { try { var returnedRate = await _rateService.CreateTrainerRate(rate); return(Ok(returnedRate)); } catch (Exception exception) { return(BadRequest(exception.Message)); } }