Publish from private repository
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/// <see cref="MyOffice.Data.Models.Accounts.Account"/>
|
||||
namespace MyOffice.Services.Account.Domain;
|
||||
|
||||
using AutoMapper;
|
||||
using MyOffice.Core;
|
||||
using MyOffice.Data.Models.Accounts;
|
||||
|
||||
public class AccountDetailedDto: IDataModelDto<AccountDetailed>
|
||||
{
|
||||
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<AccountDetailed, AccountDetailedDto>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user