From f627cbf46ab3647a41a7659c4299f1cd50264d28 Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Mon, 5 Jan 2026 02:07:16 +0330 Subject: [PATCH] fix: Handle null response metadata and models in GetDiscountProductsQueryHandler --- .../GetDiscountProductsQueryHandler.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/BackOffice.BFF.Application/DiscountProductCQ/Queries/GetDiscountProducts/GetDiscountProductsQueryHandler.cs b/src/BackOffice.BFF.Application/DiscountProductCQ/Queries/GetDiscountProducts/GetDiscountProductsQueryHandler.cs index 3c1f95c..23938ab 100644 --- a/src/BackOffice.BFF.Application/DiscountProductCQ/Queries/GetDiscountProducts/GetDiscountProductsQueryHandler.cs +++ b/src/BackOffice.BFF.Application/DiscountProductCQ/Queries/GetDiscountProducts/GetDiscountProductsQueryHandler.cs @@ -41,7 +41,7 @@ public class GetDiscountProductsQueryHandler : IRequestHandler new DiscountProductDto + } : new MetaData(), + Products = response.Models?.Select(p => new DiscountProductDto { Id = p.Id, Title = p.Title, @@ -62,8 +62,8 @@ public class GetDiscountProductsQueryHandler : IRequestHandler() }; } }