private List <PersonalAccountReport> GetReport(int year, Month month, CancellationToken token) { var employees = ReportSettings.readingDataBase.GetEmployeesAsync(year, month, token).Result; if (employees != null) { var personalAccountReport = new PersonalAccountReport(employees); PersonalAccountReports = personalAccountReport.GetPersonalAccountReport(month); return(PersonalAccountReports); } return(null); }
private List <PersonalAccountReport> GetReport(int year, Month month, bool flagZeroCharges, CancellationToken token) { var employees = ReportSettings.readingDataBase.GetEmployeesAsync(year, month, token).Result; if (employees != null) { var personalAccountReport = new PersonalAccountReport(employees, flagZeroCharges, checkIsAllEmployees.Checked, IsRegion); PersonalAccountReports = personalAccountReport.GetPersonalAccountReport(month, year); return(PersonalAccountReports); } return(null); }