public ActionResult Delete(int ID) { UserType ObjUser = new UserType(); int d = ObjUser.Dell(ID); if (d > 0) { return(RedirectToAction("Index")); } return(RedirectToAction("Index")); }