Esempio n. 1
0
        public ActionResult MembershipUpdate(MemberInfo m)
        {
            var ret = m.UpdateMember();
            if (ret != "ok")
                ViewBag.AutomationError = $"<div class='alert'>{ret}</div>";
            if (!ModelState.IsValid || ret != "ok")
                return View("Profile/Membership/Edit", m);

            DbUtil.LogPersonActivity($"Update Membership Info for: {m.person.Name}", m.PeopleId, m.person.Name);
            return View("Profile/Membership/Display", m);
        }
Esempio n. 2
0
        public ActionResult MembershipUpdate(MemberInfo m)
        {
            var ret = m.UpdateMember();
            if (ret != "ok")
                ViewBag.AutomationError = "<div class='alert'>{0}</div>".Fmt(ret);
            if (!ModelState.IsValid || ret != "ok")
                return View("Profile/Membership/Edit", m);

            DbUtil.LogActivity("Update Membership Info for: {0}".Fmt(m.person.Name));
            return View("Profile/Membership/Display", m);
        }