示例#1
0
        public static async Task <PayrollViewModel> ReBuildAsync(PayrollViewModel model, IPayrollService services)
        {
            model.From            = DateTime.Today.AddMonths(-1);
            model.To              = DateTime.Today;
            model.EmployeeOptions = await services.GetAccountingEmployeeOptions();

            return(model);
        }
示例#2
0
 public static async Task <PayrollViewModel> CreateAsync(IPayrollService services)
 {
     return(new PayrollViewModel()
     {
         From = DateTime.Today.AddMonths(-1),
         To = DateTime.Today,
         EmployeeOptions = await services.GetAccountingEmployeeOptions()
     });
 }