Ejemplo n.º 1
0
        public ActionResult CreateTraining([FromBody] Training training)
        {
            Guid idTrainer = _ctx.CurrentUserId;

            training.Trainer = _queryTrainer.GetTrainerById(idTrainer);
            _trainerService.CreateTraining(training);
            return(Ok());
        }