Beispiel #1
0
 public IActionResult Delete(int id)
 {
     if (employeeRespository.Delete(id))
     {
         return(RedirectToAction("Index"));
     }
     return(View());
 }
Beispiel #2
0
        public IActionResult Delete(int id)
        {
            _employeeRespository.Delete(id);

            return(RedirectToAction("index"));
        }