Exemple #1
0
 public static void UpateModel(ref SMTPSettingsDataStore source, NewSMTPRequest target)
 {
     source.Company   = target.Company;
     source.FromEmail = target.FromEmail;
     source.HostName  = target.HostName;
     source.Password  = target.Password;
     source.Port      = target.Port;
     source.Username  = target.Username;
 }
Exemple #2
0
        public static SMTPSettingsDataStore ToModel(this NewSMTPRequest target)
        {
            var source = new SMTPSettingsDataStore();

            source.Company   = target.Company;
            source.FromEmail = target.FromEmail;
            source.HostName  = target.HostName;
            source.Password  = target.Password;
            source.Port      = target.Port;
            source.Username  = target.Username;
            return(source);
        }
Exemple #3
0
        public static SmtpGetResponse MapTo(this SMTPSettingsDataStore source)
        {
            if (source != null)
            {
                var target = new SmtpGetResponse();
                target.Company   = source.Company;
                target.FromEmail = source.FromEmail;
                target.HostName  = source.HostName;
                target.Nid       = source.Nid;
                target.Password  = source.Password;
                target.Port      = source.Port;
                target.Username  = source.Username;

                return(target);
            }
            return(null);
        }