public ActionResult EditRulePopup(int ruleid) { string msg; try { var model = _secretSantaBl.GroupRuleEditModelByRuleId(ruleid); return(PartialView("_NewRulePopup", model)); } catch (AppException ax) { msg = ax.Message; } catch (Exception) { msg = "An Error Has Occured"; } return(PartialView("_ErrorMessage", new StringModel(msg))); }