Ejemplo n.º 1
0
        public ActionResult Payroll()
        {
            PayrollParamModel model = new PayrollParamModel();
            model.ActiveEmployees = EmployeeServices.GetActiveEmployees();
            model.StartDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1).ToShortDateString();
            model.EndDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1).AddMonths(1).AddDays(-1).ToShortDateString();

            return View("Payroll", model);
        }
Ejemplo n.º 2
0
        public ActionResult EmployeeLog()
        {
            PayrollParamModel model = new PayrollParamModel();
            model.StartDate = DateTime.Today.AddDays(-7).ToShortDateString();
            model.EndDate = DateTime.Today.ToShortDateString();

            return View("EmployeeLog", model);
        }