Exemple #1
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            RolesEntity model = GetEntity();

            int id = userApp.AddRole(model);

            if (id > 0)
            {
                this.ShowSuccessMessageToClient();
            }
            else
            {
                this.ShowFailMessageToClient(userApp.BrokenRuleMessages);
            }
        }
Exemple #2
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            RolesEntity model = GetEntity();

            int id = userApp.AddRole(model);

            if (id > 0)
            {
                Redirect(EmptyPopPageUrl, false, true);
            }
            else
            {
                this.ShowFailMessageToClient(userApp.BrokenRuleMessages);
            }
        }