public static SendEmailResponse ToDTO(this SendEmailResponseTecA sendEmailTecAResponse)
 {
     return(new SendEmailResponse()
     {
         Date = sendEmailTecAResponse.Date,
         Sent = sendEmailTecAResponse.Sent
     });
 }
Пример #2
0
        public async Task <SendEmailResponse> SendEmailAsync(string from, string to)
        {
            var response = new SendEmailResponseTecA()
            {
                Date        = DateTime.Now,
                ElapsedTime = TimeSpan.MaxValue,
                Sent        = true
            };

            return(response.ToDTO());
        }