private async Task GetGiveXReport() { _giveXReport = await _givexBussinessLogic.GetGiveXReport(SelectedDate.ToString("dd/MM/yyyy", CultureInfo.InvariantCulture)); var tempGiveXReport = MapGiveXReport(_giveXReport); ReportText = _giveXReport.CloseBatchReport?.ReportContent; GiveXReports = new ObservableCollection <GiveXReportModel>(tempGiveXReport); }
private List <GiveXReportModel> MapGiveXReport(GiveXReport giveXReports) { return((from g in giveXReports.ReportDetails select new GiveXReportModel { BatchDate = g.BatchDate, BatchTime = g.BatchTime, CashOut = g.CashOut, Id = g.Id.ToString(), Report = g.Report }).ToList()); }