Exemple #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);
 }
Exemple #2
0
 public Models.Mailmodel Index(string key, RedisRepository redisRepository)
 {
     return redisRepository.GetMail(key);
 }