fix: нименования параметра в мапперах
This commit is contained in:
parent
b35cd64e80
commit
64566065fc
@ -5,11 +5,11 @@ namespace Contracts.Mappers;
|
|||||||
|
|
||||||
public static class ChangeRecordMapper
|
public static class ChangeRecordMapper
|
||||||
{
|
{
|
||||||
public static ChangeRecordViewModel ToView(this ChangeRecordDto changeRecord)
|
public static ChangeRecordViewModel ToView(this ChangeRecordDto dto)
|
||||||
=> new()
|
=> new()
|
||||||
{
|
{
|
||||||
Id = changeRecord.Id,
|
Id = dto.Id,
|
||||||
Sum = changeRecord.Sum,
|
Sum = dto.Sum,
|
||||||
ChangedAt = changeRecord.ChangedAt
|
ChangedAt = dto.ChangedAt
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -5,11 +5,11 @@ namespace Contracts.Mappers;
|
|||||||
|
|
||||||
public static class SpendingGroupMapper
|
public static class SpendingGroupMapper
|
||||||
{
|
{
|
||||||
public static SpendingGroupViewModel ToView(this SpendingGroupDto spendingGroup)
|
public static SpendingGroupViewModel ToView(this SpendingGroupDto dto)
|
||||||
=> new()
|
=> new()
|
||||||
{
|
{
|
||||||
Id = spendingGroup.Id,
|
Id = dto.Id,
|
||||||
Name = spendingGroup.Name,
|
Name = dto.Name,
|
||||||
ChangeRecords = spendingGroup.ChangeRecords.Select(x => x.ToView()).ToList()
|
ChangeRecords = dto.ChangeRecords.Select(x => x.ToView()).ToList()
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user