Пример #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            user user = ur.Get(id);

            ur.Delete(user);
            return(RedirectToAction("Index"));
        }
Пример #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);
            }
        }