Lab is passed

This commit is contained in:
Viltskaa 2023-05-05 09:14:00 +04:00
parent 3ba1703499
commit 0b6a621b48

View File

@ -37,15 +37,12 @@ public class Message : IMessageInfoModel
MessageId = model.MessageId, MessageId = model.MessageId,
SenderName = model.SenderName, SenderName = model.SenderName,
DateDelivery = model.DateDelivery, DateDelivery = model.DateDelivery,
IsRead = model.IsRead
}; };
} }
public void Update(MessageInfoBindingModel model) public void Update(MessageInfoBindingModel model)
{ {
if (model == null)
{
return;
}
Reply = model.Reply; Reply = model.Reply;
IsRead = model.IsRead; IsRead = model.IsRead;
} }
@ -58,5 +55,7 @@ public class Message : IMessageInfoModel
MessageId = MessageId, MessageId = MessageId,
SenderName = SenderName, SenderName = SenderName,
DateDelivery = DateDelivery, DateDelivery = DateDelivery,
IsRead = IsRead,
Reply = Reply
}; };
} }