public ActionResult DeleteConfirmed(int id)
        {
            user user = ur.Get(id);

            ur.Delete(user);
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
        public void Remove(int index)
        {
            var uf = view.bindingList.ElementAt(index);

            view.bindingList.RemoveAt(index);
            if (uf.id > 0)
            {
                repo.Delete(uf.id);
            }
        }