public ActionResult EmployeeLog() { PayrollParamModel model = new PayrollParamModel(); model.StartDate = DateTime.Today.AddDays(-7).ToShortDateString(); model.EndDate = DateTime.Today.ToShortDateString(); return(View("EmployeeLog", model)); }
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)); }