fix: теперь отображаемая дата будет выглядеть лучше
This commit is contained in:
parent
83b75bed07
commit
f67ea24260
@ -8,8 +8,8 @@ public static class ChangeRecordMapper
|
|||||||
public static ChangeRecordViewModel ToView(this ChangeRecordDto dto)
|
public static ChangeRecordViewModel ToView(this ChangeRecordDto dto)
|
||||||
=> new()
|
=> new()
|
||||||
{
|
{
|
||||||
Id = dto.Id,
|
Id = dto.Id,
|
||||||
Sum = dto.Sum,
|
Sum = dto.Sum,
|
||||||
ChangedAt = dto.ChangedAt
|
ChangedAt = dto.ChangedAt.ToString("dd.MM.yyyy"),
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -9,8 +9,8 @@ public static class SpendingPlanMapper
|
|||||||
=> new()
|
=> new()
|
||||||
{
|
{
|
||||||
Id = dto.Id,
|
Id = dto.Id,
|
||||||
StartAt = dto.StartAt,
|
StartAt = dto.StartAt.ToString("dd.MM.yyyy"),
|
||||||
EndAt = dto.EndAt,
|
EndAt = dto.EndAt.ToString("dd.MM.yyyy"),
|
||||||
Sum = dto.Sum
|
Sum = dto.Sum
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -4,5 +4,5 @@ public class ChangeRecordViewModel
|
|||||||
{
|
{
|
||||||
public Guid Id { get; set; }
|
public Guid Id { get; set; }
|
||||||
public decimal Sum { get; set; }
|
public decimal Sum { get; set; }
|
||||||
public DateTime ChangedAt { get; set; }
|
public string ChangedAt { get; set; } = null!;
|
||||||
}
|
}
|
@ -3,7 +3,7 @@ namespace Contracts.ViewModels;
|
|||||||
public class SpendingPlanViewModel
|
public class SpendingPlanViewModel
|
||||||
{
|
{
|
||||||
public Guid Id { get; set; }
|
public Guid Id { get; set; }
|
||||||
public DateTime StartAt { get; set; }
|
public string StartAt { get; set; } = null!;
|
||||||
public DateTime EndAt { get; set; }
|
public string EndAt { get; set; } = null!;
|
||||||
public decimal Sum { get; set; }
|
public decimal Sum { get; set; }
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user