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); }
public static async Task <PayrollViewModel> CreateAsync(IPayrollService services) { return(new PayrollViewModel() { From = DateTime.Today.AddMonths(-1), To = DateTime.Today, EmployeeOptions = await services.GetAccountingEmployeeOptions() }); }