Exemple #1
0
 public ActionResult GetVolSub(int aid, int pid)
 {
     var vs = new VolSubModel(aid, pid);
     SetHeaders(vs.org.OrganizationId);
     vs.ComposeMessage();
     return View(vs);
 }
Exemple #2
0
 public ActionResult GetVolSub(int aid, int pid, long ticks, int[] pids, string subject, string message)
 {
     var m = new VolSubModel(aid, pid, ticks);
     m.subject = subject;
     m.message = message;
     if (pids == null)
         return Content("no emails sent (no recipients were selected)");
     m.pids = pids;
     m.SendEmails();
     return Content("Emails are being sent, thank you.");
 }
 public ActionResult ClaimVolSub(string ans, string guid)
 {
     try
     {
         var vs = new VolSubModel(guid);
         vs.ProcessReply(ans);
         return Content(vs.DisplayMessage);
     }
     catch (Exception ex)
     {
         return Content(ex.Message);
     }
 }
 public ActionResult VolSubReport(int aid, int pid, long ticks)
 {
     var vs = new VolSubModel(aid, pid, ticks);
     SetHeaders(vs.org.OrganizationId);
     return View(vs);
 }