From 10784590ace360539515bd0e3375dcd9c4da4228 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Fri, 22 Sep 2023 16:24:22 +0700 Subject: [PATCH] =?UTF-8?q?noti=20=E0=B8=96=E0=B9=89=E0=B8=B2=E0=B8=AB?= =?UTF-8?q?=E0=B8=B2=20user=20=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=80?= =?UTF-8?q?=E0=B8=88=E0=B8=AD=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B8=AA=E0=B9=88?= =?UTF-8?q?=E0=B8=87=E0=B8=A7=E0=B9=88=E0=B8=B2=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/MessageQueue/InboxRepository.cs | 3 ++- .../Repositories/MessageQueue/NotificationRepository.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Application/Repositories/MessageQueue/InboxRepository.cs b/BMA.EHR.Application/Repositories/MessageQueue/InboxRepository.cs index ef1852a5..1b3d8dc1 100644 --- a/BMA.EHR.Application/Repositories/MessageQueue/InboxRepository.cs +++ b/BMA.EHR.Application/Repositories/MessageQueue/InboxRepository.cs @@ -42,7 +42,8 @@ namespace BMA.EHR.Application.Repositories.MessageQueue if (profile == null) { - throw new Exception(GlobalMessages.DataNotFound); + return new List(); + // throw new Exception(GlobalMessages.DataNotFound); } var data = await _dbContext.Set() diff --git a/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs b/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs index 7489a43e..33c81057 100644 --- a/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs +++ b/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs @@ -42,7 +42,8 @@ namespace BMA.EHR.Application.Repositories.MessageQueue if (profile == null) { - throw new Exception(GlobalMessages.DataNotFound); + return new List(); + // throw new Exception(GlobalMessages.DataNotFound); } var data = await _dbContext.Set()