public ActionResult Delete(int?id) { clsUserReg clsUser3 = new clsUserReg(); clsUser3.DeleteUser(id); List <clsUserReg> lst = clsUser3.GetUsers(); return(View("GetAllUser", lst)); }
public ActionResult DeleteConfirmed(int?id) { clsUser.DeleteUser(id); return(RedirectToAction("GetAllUser")); }