public ActionResult CreateTraining([FromBody] Training training) { Guid idTrainer = _ctx.CurrentUserId; training.Trainer = _queryTrainer.GetTrainerById(idTrainer); _trainerService.CreateTraining(training); return(Ok()); }