public ActionResult DeleteGroupRule(GroupRulesEditModel model) { try { //var u = _httpContextAccessor.HttpContext.Session.GetObjectFromJson<CustomUserEditModel>("LoggedInUser"); //var m = _secretSantaBl.SaveGroupRules(model); var m = _secretSantaBl.DeleteGroupRule(model); m.Saved = true; return(PartialView("_DeleteRulePopup", m)); //return PartialView("_JoinGroupEntry", m); } catch (AppException ax) { ModelState.AddModelError("", ax.AppMessage); } catch (Exception ex) { ModelState.AddModelError("", ex.Message); _log.LogError("", ex); } return(PartialView("_DeleteRulePopup", model)); }