// 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));
        }
Esempio n. 2
0
        // POST: Year
        public ActionResult SelectYear(int year)
        {
            TimeSheetContainer model = new TimeSheetContainer();

            model.PeriodList = PayPeriod.GetPeriodItems(year);
            return(PartialView("_SelectYear", model));
        }