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