示例#1
0
 public IActionResult Deletar(long id)
 {
     try
     {
         if (id > 0)
         {
             _funcionarioRepository.DesativarPorId(id);
             return(RedirectToAction("Index"));
         }
         return(NotFound());
     }
     catch (Exception ex)
     {
         return(StatusCode(500, ex));
     }
 }