using Contracts.DTO; using Contracts.ViewModels; namespace Contracts.Mappers; public static class ChangeRecordMapper { public static ChangeRecordViewModel ToView(this ChangeRecordDto dto) => new() { Id = dto.Id, Sum = dto.Sum, ChangedAt = dto.ChangedAt }; }