public ActionResult DeleteRelative(int rid, Relationship relObject) { //try catch loop implemented to ensure correct information is deleted try { Relationship _relObject = _treeService.GetRelDelete(rid); _treeService.DeleteRelative(_relObject); return(RedirectToAction("GetRelatives", new { pid = _relObject.personID, controller = "Family" })); } catch { return(View()); } }