示例#1
0
 void Handle(Input.Delete action)
 {
     // TODO: Warning user with Yes/No dialog
     Db.Transact(() => {
         SystemUserAdmin.DeleteSystemUserGroup(this.Data as Simplified.Ring3.SystemUserGroup);
     });
 }
        /// <summary>
        /// Delete System User Group
        /// </summary>
        /// <param name="action"></param>
        void Handle(Input.Delete action)
        {
            // TODO: Warn user with Yes/No dialog
            var transaction = this.Transaction;

            transaction.Scope(() => {
                SystemUserAdmin.DeleteSystemUserGroup(this.Data as Simplified.Ring3.SystemUserGroup);
            });

            if (transaction.IsDirty)
            {
                transaction.Commit();
            }

            this.RedirectUrl = "/UserAdmin/admin/usergroups";
        }