fix
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
namespace MyOffice.Services.Currency.Domain;
|
||||
/// <see cref="MyOffice.Data.Models.Currencies.Currency"/>
|
||||
namespace MyOffice.Services.Currency.Domain;
|
||||
|
||||
using AutoMapper;
|
||||
using MyOffice.Data.Models.Currencies;
|
||||
using MyOffice.Data.Models.Users;
|
||||
using MyOffice.Services.Account.Domain;
|
||||
|
||||
public class CurrencyDto
|
||||
@@ -21,3 +22,11 @@ public class CurrencyDto
|
||||
|
||||
public bool IsPrimary { get; set; }
|
||||
}
|
||||
|
||||
public class CurrencyDtoProfile: Profile
|
||||
{
|
||||
public CurrencyDtoProfile()
|
||||
{
|
||||
CreateMap<Currency, CurrencyDto>();
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,8 @@
|
||||
namespace MyOffice.Services.Currency.Domain;
|
||||
/// <see cref="MyOffice.Data.Models.Currencies.CurrencyGlobal"/>
|
||||
namespace MyOffice.Services.Currency.Domain;
|
||||
|
||||
using AutoMapper;
|
||||
using MyOffice.Data.Models.Currencies;
|
||||
|
||||
public class CurrencyGlobalDto
|
||||
{
|
||||
@@ -7,3 +11,11 @@ public class CurrencyGlobalDto
|
||||
public string Symbol { get; set; } = null!;
|
||||
public int DefaultQuantity { get; set; }
|
||||
}
|
||||
|
||||
public class CurrencyGlobalDtoProfile: Profile
|
||||
{
|
||||
public CurrencyGlobalDtoProfile()
|
||||
{
|
||||
CreateMap<CurrencyGlobal, CurrencyGlobalDto>();
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,8 @@
|
||||
namespace MyOffice.Services.Currency.Domain;
|
||||
/// <see cref="MyOffice.Data.Models.Currencies.CurrencyRate"/>
|
||||
namespace MyOffice.Services.Currency.Domain;
|
||||
|
||||
using AutoMapper;
|
||||
using MyOffice.Data.Models.Currencies;
|
||||
|
||||
public class CurrencyRateDto
|
||||
{
|
||||
@@ -10,3 +14,11 @@ public class CurrencyRateDto
|
||||
public decimal Rate { get; set; }
|
||||
public List<CurrencyDto>? Currencies { get; set; }
|
||||
}
|
||||
|
||||
public class CurrencyRateDtoProfile : Profile
|
||||
{
|
||||
public CurrencyRateDtoProfile()
|
||||
{
|
||||
CreateMap<CurrencyRate, CurrencyRateDto>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user