public ActionResult DeleteConfirmed(int id)
        {
            Share share = shareManager.Find(x => x.ShareId == id);

            shareManager.Delete(share);
            return(RedirectToAction("Index"));
        }
示例#2
0
 public bool Delete(int id)
 {
     _manager.ClearBrokenRuleMessages();
     if (!_manager.Delete(id))
     {
         this.AddBrokenRuleMessages(_manager.BrokenRuleMessages);
         return(false);
     }
     return(true);
 }