Пример #1
0
 public IActionResult Sendgrid(string text,string html,string to, string subject, string from, RedisRepository redisRepository)
 {
     var x = new Models.Mailmodel
     {
         Text = text,
         Html = html,
         To = to,
         From = from,
         Subject = subject
     };
     redisRepository.PutMail(x.Subject, x); //transactions lol
     return new HttpStatusCodeResult(200);
 }
Пример #2
0
        public IActionResult Sendgrid(string text, string html, string to, string subject, string from, RedisRepository redisRepository)
        {
            var x = new Models.Mailmodel
            {
                Text    = text,
                Html    = html,
                To      = to,
                From    = from,
                Subject = subject
            };

            redisRepository.PutMail(x.Subject, x);             //transactions lol
            return(new HttpStatusCodeResult(200));
        }