示例#1
0
 public ActionResult Delete(Employees employees)
 {
     if (_employees.Delete(employees) > 0)
     {
         return(RedirectToAction("Index"));
     }
     return(View(employees));
 }
示例#2
0
        public int Delete(int id)
        {
            repoEmployees.Delete(id);

            return(1);
        }