// GET: Year // POST: Year public ActionResult SelectYear(int?year) { TimeSheetContainer model = new TimeSheetContainer(); model.PeriodList = PayPeriod.GetPeriodItems((year == null) ? DateTime.Now.Year : year.Value); return(PartialView("_SelectYear", model)); }
// POST: Year public ActionResult SelectYear(int year) { TimeSheetContainer model = new TimeSheetContainer(); model.PeriodList = PayPeriod.GetPeriodItems(year); return(PartialView("_SelectYear", model)); }