예제 #1
0
        public IActionResult Delete(long id)
        {
            var todo = _FuncionarioDAL.GetFuncionario(id);

            if (todo == null)
            {
                return(NotFound());
            }
            _FuncionarioDAL.DeleteFuncionario(id);
            return(new NoContentResult());
        }
예제 #2
0
 public IActionResult DeleteConfirmed(int?id)
 {
     funci.DeleteFuncionario(id);
     return(RedirectToAction("Index"));
 }