Beispiel #1
0
        public async Task <IActionResult> CadastrarAtendimento([FromBody] Atendimento atendimento)
        {
            try
            {
                await _atendimentoService.CadastrarAtendimento(atendimento);

                return(Ok());
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }