diff --git a/EstateReportingAPI.BusinessLogic/ReportingManager.cs b/EstateReportingAPI.BusinessLogic/ReportingManager.cs index abeff19..5e723a7 100644 --- a/EstateReportingAPI.BusinessLogic/ReportingManager.cs +++ b/EstateReportingAPI.BusinessLogic/ReportingManager.cs @@ -651,7 +651,11 @@ from s in sJoin.DefaultIfEmpty() // Ok now enumerate the results var queryResults = await query.ToListAsync(cancellationToken); if (queryResults.Any() == false) - return response; + return new TransactionDetailReportResponse + { + Summary = new TransactionDetailSummary(), + Transactions = new List() + }; // Now to translate the results response = new TransactionDetailReportResponse {