/// <summary>
        /// Validate Unique User Name
        /// </summary>
        /// <param name="userName"></param>
        public void ValidateUniqueUserName(string userName)
        {
            taccount user = adminDataService.GetUserByUserName(userName);

            if (user != null)
            {
                AddValidationError("UserName", "- User '" + userName + "' already exists. Please choose a different User Name.");
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Validate Unique User Name
        /// </summary>
        /// <param name="userName"></param>
        public void ValidateUniqueUserName(string userName)
        {
            user user = accountsDataService.GetUserByUserName(userName);

            if (user != null)
            {
                AddValidationError("UserName", "User Name " + userName + " already exists.");
            }
        }