public async Task <IActionResult> Create([FromBody] CreateEvaluationCommand command) { var evaluation = await Mediator.Send(command); if (evaluation == null) { return(BadRequest()); } return(Ok(new { evaluation.Scor, evaluation.UserId, evaluation.ConsultantId })); }
public async Task <IActionResult> Create([FromBody] CreateEvaluationCommand command) { await Mediator.Send(command); return(NoContent()); }