public ActionResult DeleteConfirmed(int id)
        {
            if (Repository_person.Delete(id))
            {
                return(Content("SUCCESS"));
            }

            return(PartialView("Delete", Repository_person.Find(id)));
        }
示例#2
0
        public IActionResult DeleteConfirmed(int id, string formView, string funcRefresh)
        {
            if (_db.Delete(id))
            {
                return(Content("SUCCESS"));
            }

            var dto = _db.Find(id);

            dto.formView    = formView;
            dto.funcRefresh = funcRefresh;
            return(PartialView("Delete", dto));
        }