public static HistoryDto AsDto(this HistoryDocument document) => new HistoryDto { Id = document.Id, IssueId = document.IssueId, UserId = document.UserId, Action = document.Action, CreatedAt = document.CreatedAt, ChangedFields = document.ChangedFields };
public static History AsEntity(this HistoryDocument document) => new History(document.Id, document.IssueId, document.UserId, document.Action, document.CreatedAt, document.ChangedFields);