Example #1
0
 public ActionResult MeetingsToQuery(string type, MeetingsModel m)
 {
     string r = m.ConvertToSearch(type);
     TempData["autorun"] = true;
     return Redirect(r);
 }
Example #2
0
 public ActionResult Meetings(DateTime dt1, DateTime dt2, int? programid, int? divisionid)
 {
     MeetingsModel m = new MeetingsModel() {Dt1 = dt1, Dt2 = dt2, ProgramId = programid, DivisionId = divisionid};
     return View(m);
 }
Example #3
0
 public ActionResult Meetings(MeetingsModel m)
 {
     if (!m.Dt1.HasValue)
         m.Dt1 = ChurchAttendanceModel.MostRecentAttendedSunday();
     if (!m.Dt2.HasValue)
         m.Dt2 = m.Dt1.Value.AddDays(1);
     return View(m);
 }
Example #4
0
 public ActionResult Meetings(string dt1, string dt2, int? programid, int? divisionid)
 {
     var d1 = dt1.ToDate();
     var d2 = dt2.ToDate();
     var m = new MeetingsModel { Dt1 = d1, Dt2 = d2, ProgramId = programid, DivisionId = divisionid };
     return View(m);
 }