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