From 0b6a621b48947bb592ed6ac3fbd898b0f6977b73 Mon Sep 17 00:00:00 2001 From: Viltskaa Date: Fri, 5 May 2023 09:14:00 +0400 Subject: [PATCH] Lab is passed --- SushiBar/SushiBarDatabaseImplement/Models/Message.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SushiBar/SushiBarDatabaseImplement/Models/Message.cs b/SushiBar/SushiBarDatabaseImplement/Models/Message.cs index b942e3e..8bd5d61 100644 --- a/SushiBar/SushiBarDatabaseImplement/Models/Message.cs +++ b/SushiBar/SushiBarDatabaseImplement/Models/Message.cs @@ -37,15 +37,12 @@ public class Message : IMessageInfoModel MessageId = model.MessageId, SenderName = model.SenderName, DateDelivery = model.DateDelivery, + IsRead = model.IsRead }; } public void Update(MessageInfoBindingModel model) { - if (model == null) - { - return; - } Reply = model.Reply; IsRead = model.IsRead; } @@ -58,5 +55,7 @@ public class Message : IMessageInfoModel MessageId = MessageId, SenderName = SenderName, DateDelivery = DateDelivery, + IsRead = IsRead, + Reply = Reply }; } \ No newline at end of file