Пример #1
0
        public ActionResult SaveNewMemberCondition(MemberConditionsEditModel model)
        {
            try
            {
                model.ConditionId = 0;
                var m = _secretSantaBl.SaveNewMemberCondition(model);
                m.Saved = true;

                return(PartialView("_MemberConditions", model));
            }
            catch (AppException ax)
            {
                ModelState.AddModelError("", ax.AppMessage);
            }
            catch (Exception ex)
            {
                ModelState.AddModelError("", ex.Message);
                _log.LogWarning(ex.Message);
            }
            return(PartialView("_MemberConditions", model));
        }