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

            return(RedirectToAction("index"));
        }