Esempio n. 1
0
        private void Action_ApproveUser()
        {
            string ErrorMessage;

            ViewData.DescriptorIds = GetDescriptorsSelectedByApprover();

            if (RegisterUserBLL.ApproveUser(ViewData, this.AccountInfo.UserId, out ErrorMessage))
            {
                DisplayMessage("The User Approval was successful. An approval notification email has been sent to the User.", false);
            }
            else
            {
                DisplayMessage("The approval process failed with the following error message:" + "<br />" + ErrorMessage, true);
            }
        }