Exemple #1
0
 public IActionResult Delete(int id)
 {
     try
     {
         appService.Excluir(id);
         return(Ok($"Aluno excluído com sucesso."));
     }
     catch (Exception e)
     {
         return(StatusCode(500, e.Message));
     }
 }