public ActionResult DeleteConfirmed(int id) { user user = ur.Get(id); ur.Delete(user); return(RedirectToAction("Index")); }
public void Remove(int index) { var uf = view.bindingList.ElementAt(index); view.bindingList.RemoveAt(index); if (uf.id > 0) { repo.Delete(uf.id); } }