Beispiel #1
0
 public ActionResult GetVolSub(int aid, int pid)
 {
     var vs = new VolSubModel(aid, pid);
     SetHeaders(vs.org.OrganizationId);
     vs.ComposeMessage();
     return View("ManageVolunteer/GetVolSub", vs);
 }
Beispiel #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.");
 }
Beispiel #3
0
 public ActionResult ClaimVolSub(string ans, string guid, FormCollection formCollection)
 {
     try
     {
         var vs = new VolSubModel(guid);
         vs.ProcessReply(ans);
         return Content(vs.DisplayMessage);
     }
     catch (Exception ex)
     {
         return Message(ex.Message);
     }
 }
Beispiel #4
0
 public ActionResult ClaimVolSub(string ans, string guid)
 {
     try
     {
         var vs = new VolSubModel();
         vs.PrepareToClaim(ans, guid);
         ViewBag.Answer = ans;
         ViewBag.Guid = guid;
         return View("ManageVolunteer/ClaimVolSub");
     }
     catch (Exception ex)
     {
         return Message(ex.Message);
     }
 }
Beispiel #5
0
 public ActionResult VolSubReport(int aid, int pid, long ticks)
 {
     var vs = new VolSubModel(aid, pid, ticks);
     SetHeaders(vs.org.OrganizationId);
     return View("ManageVolunteer/VolSubReport", vs);
 }