fix: нименования параметра в мапперах

This commit is contained in:
mfnefd 2024-11-27 01:47:00 +04:00
parent b35cd64e80
commit 64566065fc
2 changed files with 8 additions and 8 deletions

View File

@ -5,11 +5,11 @@ namespace Contracts.Mappers;
public static class ChangeRecordMapper
{
public static ChangeRecordViewModel ToView(this ChangeRecordDto changeRecord)
public static ChangeRecordViewModel ToView(this ChangeRecordDto dto)
=> new()
{
Id = changeRecord.Id,
Sum = changeRecord.Sum,
ChangedAt = changeRecord.ChangedAt
Id = dto.Id,
Sum = dto.Sum,
ChangedAt = dto.ChangedAt
};
}

View File

@ -5,11 +5,11 @@ namespace Contracts.Mappers;
public static class SpendingGroupMapper
{
public static SpendingGroupViewModel ToView(this SpendingGroupDto spendingGroup)
public static SpendingGroupViewModel ToView(this SpendingGroupDto dto)
=> new()
{
Id = spendingGroup.Id,
Name = spendingGroup.Name,
ChangeRecords = spendingGroup.ChangeRecords.Select(x => x.ToView()).ToList()
Id = dto.Id,
Name = dto.Name,
ChangeRecords = dto.ChangeRecords.Select(x => x.ToView()).ToList()
};
}