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