示例#1
0
        public ActionResult GetManageRulesPopup(int groupid)
        {
            string msg;

            try
            {
                var model = _secretSantaBl.NewRuleEditModelByGroupId(groupid);
                return(PartialView("_NewRulePopup", model));
            }
            catch (AppException ax)
            {
                msg = ax.Message;
            }
            catch (Exception)
            {
                msg = "An Error Has Occured";
            }
            return(PartialView("_ErrorMessage", new StringModel(msg)));
        }