public IEnumerable<PayStub> Index(string dateString, string weekString)
        {
            //var rangeQuery = HttpUtility.ParseQueryString(Request.RequestUri.Query);
            var startDate = DateTime.ParseExact(dateString, "yyyyMMdd", CultureInfo.CurrentCulture);

            var numberOfWeeks = Convert.ToInt32(weekString);
            var pc = new PayrollCalculator(db);

            var payroll = pc.GetPayroll(startDate, numberOfWeeks);

            return payroll;
        }
 public ActionResult ViewPayroll(PayrollViewModel viewModel)
 {
     var pc = new PayrollCalculator(db);
     var stubs = pc.GetPayroll(viewModel.StartDate, viewModel.NumberOfWeeks);
     return View(stubs);
 }