예제 #1
0
        public void AdminProfileUpdated(MembershipUser user, MembershipUser admin)
        {
            var e = new AdminUpdateProfileEventArgs {
                User = user, Admin = admin
            };

            EventManager.Instance.FireBeforeAdminProfileUpdated(this, e);
            if (!e.Cancel)
            {
                EventManager.Instance.FireAfterAdminProfileUpdated(this, new AdminUpdateProfileEventArgs {
                    User = user, Admin = admin
                });
                _activityService.AdminProfileUpdated(user, admin);
            }
        }