Exemplo n.º 1
0
        public void ValidateUniqueOrganization(string title)
        {
            IClientDataService dService = new ClientDataService();

            if (!string.IsNullOrEmpty(title))
            {
                client objCLient = dService.GetClientByTitle(title);
                if (objCLient != null)
                {
                    AddValidationError("Title", "- Organization '" + title + "' already exists. Please ask your account admin to create a user for you.");
                }
            }
        }