Exemplo n.º 1
0
 public static MasterDataSet.EmailSuffixDataTable GetEmailSuffixesByInstanceId(Guid instanceId)
 {
     using (EmailSuffixTableAdapter adapter = new EmailSuffixTableAdapter())
     {
         return(adapter.GetEmailSuffixesByInstanceId(instanceId));
     }
 }
Exemplo n.º 2
0
 public static MasterDataSet.EmailSuffixDataTable GetEmailSuffixes(Guid organizationId)
 {
     using (EmailSuffixTableAdapter adapter = new EmailSuffixTableAdapter())
     {
         return(adapter.GetEmailSuffixesByOrganizationId(organizationId));
     }
 }
Exemplo n.º 3
0
 public static void DeleteEmailSuffixes(Guid organizationId, Guid?instanceId)
 {
     using (EmailSuffixTableAdapter adapter = new EmailSuffixTableAdapter())
     {
         adapter.Delete(organizationId, instanceId);
     }
 }
Exemplo n.º 4
0
 public static MasterDataSet.EmailSuffixDataTable GetEmailSuffixes(Guid?organizationId, Guid?instanceId, string emailSuffixName)
 {
     using (EmailSuffixTableAdapter adapter = new EmailSuffixTableAdapter())
     {
         return(adapter.GetEmailSuffixes(organizationId, instanceId, emailSuffixName));
     }
 }
Exemplo n.º 5
0
        public static void InsertEmailSuffix(Guid emailSuffixId, Guid organizationId, Guid?instanceId, string emailSuffixName)
        {
            if (!String.IsNullOrEmpty(emailSuffixName))
            {
                emailSuffixName = emailSuffixName.Replace(" ", string.Empty).Replace("@", string.Empty);

                using (EmailSuffixTableAdapter adapter = new EmailSuffixTableAdapter())
                {
                    adapter.Insert(emailSuffixId, organizationId, instanceId, emailSuffixName);
                }
            }
        }