public IActionResult Delete(long id) { var todo = _FuncionarioDAL.GetFuncionario(id); if (todo == null) { return(NotFound()); } _FuncionarioDAL.DeleteFuncionario(id); return(new NoContentResult()); }
public IActionResult DeleteConfirmed(int?id) { funci.DeleteFuncionario(id); return(RedirectToAction("Index")); }