public ActionResult ChurchAttendance(DateTime? dt) { if (!dt.HasValue) dt = ChurchAttendanceModel.MostRecentAttendedSunday(); var m = new ChurchAttendanceModel(dt.Value); return View(m); }
public ActionResult ChurchAttendance(string dt) { var d = dt.ToDate(); if (!d.HasValue) d = ChurchAttendanceModel.MostRecentAttendedSunday(); var m = new ChurchAttendanceModel(d.Value); return View(m); }