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