CommissionPercent set to double

This commit is contained in:
jozsef.b@aycode.com 2024-05-28 19:18:16 +02:00
parent f68a9d1551
commit 225c605697
2 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ namespace AyCode.Entities.ServiceProviders
[Required] [Required]
public string Name { get; set; } public string Name { get; set; }
public double? CommissionPercent { get; set; } public double CommissionPercent { get; set; }
[Required] [Required]
public Guid AffiliateId { get; set; } public Guid AffiliateId { get; set; }
@ -44,15 +44,15 @@ namespace AyCode.Entities.ServiceProviders
{ {
} }
protected AcCompany(string name, Guid ownerId) : this(Guid.NewGuid(), name, ownerId) protected AcCompany(string name, Guid? ownerId) : this(Guid.NewGuid(), name, ownerId)
{ {
} }
protected AcCompany(Guid id, string name, Guid ownerId) : this(id, name, ownerId, Guid.NewGuid()) protected AcCompany(Guid id, string name, Guid? ownerId) : this(id, name, ownerId, Guid.NewGuid())
{ {
} }
protected AcCompany(Guid id, string name, Guid ownerId, Guid affiliateId, double? commissionPercent = null) : this() protected AcCompany(Guid id, string name, Guid? ownerId, Guid affiliateId, double commissionPercent = 0) : this()
{ {
Id = id; Id = id;
Name = name; Name = name;

View File

@ -10,7 +10,7 @@ public interface IAcCompanyBase : IEntityGuid, IAcProfileForeignKey, ITimeStampI
Guid? OwnerId { get; set; } Guid? OwnerId { get; set; }
string Name { get; set; } string Name { get; set; }
double? CommissionPercent { get; set; } double CommissionPercent { get; set; }
Guid AffiliateId { get; set; } Guid AffiliateId { get; set; }
Guid? ReferralId { get; set; } Guid? ReferralId { get; set; }