public async Task <IActionResult> Create(Medico consulta)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(RedirectToAction(nameof(Erro), new { mensagem = "Erro durante processamento. Verifique os dados informados e tente novamente" }));
                }

                await _medicoService.AdicionarMedicoAsync(consulta);

                return(RedirectToAction(nameof(Index)));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }