diff --git a/BMA.EHR.Application/Repositories/MessageQueue/InboxRepository.cs b/BMA.EHR.Application/Repositories/MessageQueue/InboxRepository.cs index ff1a2d55..ef1852a5 100644 --- a/BMA.EHR.Application/Repositories/MessageQueue/InboxRepository.cs +++ b/BMA.EHR.Application/Repositories/MessageQueue/InboxRepository.cs @@ -51,6 +51,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue .OrderByDescending(x => x.ReceiveDate) .Select(x => new InboxResponse { + Id = x.Id, Subject = x.Subject, Body = x.Body, ReceiverUserId = x.ReceiverUserId, diff --git a/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs b/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs index 45fd0fb2..7489a43e 100644 --- a/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs +++ b/BMA.EHR.Application/Repositories/MessageQueue/NotificationRepository.cs @@ -51,6 +51,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue .OrderByDescending(x => x.ReceiveDate) .Select(x => new NotificationResponse { + Id = x.Id, Body = x.Body, ReceiverUserId = x.ReceiverUserId, IsOpen = x.IsOpen, diff --git a/BMA.EHR.Application/Responses/Messages/InboxResponse.cs b/BMA.EHR.Application/Responses/Messages/InboxResponse.cs index 1652ff72..58aef4c9 100644 --- a/BMA.EHR.Application/Responses/Messages/InboxResponse.cs +++ b/BMA.EHR.Application/Responses/Messages/InboxResponse.cs @@ -1,7 +1,8 @@ namespace BMA.EHR.Application.Responses.Messages { public class InboxResponse - { + { + public Guid Id { get; set; } public string Subject { get; set; } = string.Empty; public string Body { get; set; } = string.Empty; diff --git a/BMA.EHR.Application/Responses/Messages/NotificationResponse.cs b/BMA.EHR.Application/Responses/Messages/NotificationResponse.cs index 013b24cf..89861d62 100644 --- a/BMA.EHR.Application/Responses/Messages/NotificationResponse.cs +++ b/BMA.EHR.Application/Responses/Messages/NotificationResponse.cs @@ -2,6 +2,7 @@ { public class NotificationResponse { + public Guid Id { get; set; } public string Body { get; set; } = string.Empty; public Guid ReceiverUserId { get; set; } = Guid.Empty;