Реализовать лабораторную работу 4
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
namespace Messenger.Api.Data.Entities;
|
||||
|
||||
public sealed record MessageEntity(Guid Id, Guid ChatId, Guid SenderId, string Text, DateTime CreatedAt, Guid[]? AttachmentIds = null)
|
||||
{
|
||||
public Contracts.MessageDto ToDto() => new(Id, ChatId, SenderId, Text, CreatedAt.ToString("O"), AttachmentIds ?? []);
|
||||
}
|
||||
Reference in New Issue
Block a user