示例#1
0
 public ActionResult DeleteLinkedUser(int lid, UserLink linkObject)
 {
     //Try catch loop to ensure correct information is deleted and doesn't crash application
     try
     {
         UserLink _linkObject = _treeService.GetUserLink(lid);
         _treeService.DeleteLinkedUser(_linkObject);
         return(RedirectToAction("GetLinkedUsers", new { fid = linkObject.familyID }));
     }
     catch
     {
         return(View());
     }
 }