2024-11-27 01:46:33 +04:00
|
|
|
using Contracts.DTO;
|
|
|
|
using Contracts.ViewModels;
|
|
|
|
|
|
|
|
namespace Contracts.Mappers;
|
|
|
|
|
|
|
|
public static class SpendingPlanMapper
|
|
|
|
{
|
2024-11-27 02:20:17 +04:00
|
|
|
public static SpendingPlanViewModel ToView(this SpendingPlanDto dto)
|
2024-11-27 01:46:33 +04:00
|
|
|
=> new()
|
|
|
|
{
|
|
|
|
Id = dto.Id,
|
|
|
|
StartAt = dto.StartAt,
|
|
|
|
EndAt = dto.EndAt,
|
|
|
|
Sum = dto.Sum
|
|
|
|
};
|
|
|
|
}
|