public IActionResult SalvarNovoAtendimento([FromBody] MarcarAtendimento.Command command) { var result = mediator.Execute(command); if (result.Erro) { return(JsonFail(result.Messages)); } return(Json(new { command.IdAtendimento })); }
public IActionResult Cadastrar(CadastrarPaciente.Command command) { var result = mediator.Execute(command); if (result.Erro) { return(JsonFail(result.Messages)); } return(JsonSuccess(new { command.IdPaciente })); }