hn-20-2/Domain/Comment.cs
2021-04-29 11:46:17 +02:00

22 lines
453 B
C#

using System;
namespace Domain
{
public class Comment
{
public Guid Id { get; }
public Guid LinkId { get; }
public string Content { get; }
public DateTime CreatedAt { get; }
public Guid CreatedBy { get; }
internal Comment(Guid linkId, Guid createdBy, string content)
{
Id = Guid.NewGuid();
CreatedBy = createdBy;
LinkId = linkId;
Content = content;
CreatedAt = DateTime.UtcNow;
}
}
}