示例#1
0
        public IActionResult SalvarNovoAtendimento([FromBody] MarcarAtendimento.Command command)
        {
            var result = mediator.Execute(command);

            if (result.Erro)
            {
                return(JsonFail(result.Messages));
            }

            return(Json(new { command.IdAtendimento }));
        }
示例#2
0
        public IActionResult Cadastrar(CadastrarPaciente.Command command)
        {
            var result = mediator.Execute(command);

            if (result.Erro)
            {
                return(JsonFail(result.Messages));
            }

            return(JsonSuccess(new { command.IdPaciente }));
        }