16 lines
346 B
C#
16 lines
346 B
C#
|
using Contracts.DTO;
|
||
|
using Contracts.ViewModels;
|
||
|
|
||
|
namespace Contracts.Mappers;
|
||
|
|
||
|
public static class SpendingPlanMapper
|
||
|
{
|
||
|
public static SpendingPlanView ToView(this SpendingPlanDto dto)
|
||
|
=> new()
|
||
|
{
|
||
|
Id = dto.Id,
|
||
|
StartAt = dto.StartAt,
|
||
|
EndAt = dto.EndAt,
|
||
|
Sum = dto.Sum
|
||
|
};
|
||
|
}
|