using AutoMapper; using MyOffice.Core; using MyOffice.Data.Models.Accounts; namespace MyOffice.Services.Account.Domain; public class AccountDetailedDto: IDataModelDto { public AccountDto Account { get; set; } = null!; public decimal TotalPlus { get; set; } public decimal TotalMinus { get; set; } public decimal Rest => TotalPlus - TotalMinus; } public class AccountDetailedDtoProfile: Profile { public AccountDetailedDtoProfile() { CreateMap(); } }