fix payAt on payment , add version 0.27.36.58
parent
f28e36e84e
commit
8dfbc108f6
|
@ -8,7 +8,7 @@ string env = builder.Environment.IsDevelopment() == true ? "Development" : "Prod
|
|||
builder.Host.UseContentRoot(Directory.GetCurrentDirectory());
|
||||
if (builder.Environment.IsDevelopment())
|
||||
{
|
||||
string projectName = "Hamyan";
|
||||
string projectName = "Vesmeh";
|
||||
builder.Configuration.AddJsonFile($"AppSettings/appsettings.json").AddJsonFile($"AppSettings/appsettings.{env}{projectName}.json");
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,8 @@ public class CreateOrUpdatePaymentCommandHandler : IRequestHandler<CreateOrUpdat
|
|||
var newEnt = Payment.Create(request.FactorNumber, request.Amount, request.Description, request.TransactionCode,
|
||||
request.CardPan, request.Authority, request.Type, request.Status, request.OrderId, request.UserId);
|
||||
newEnt.Id = ent.Id;
|
||||
newEnt.CreatedAt = ent.CreatedAt == DateTime.MinValue ? DateTime.Now : ent.CreatedAt;
|
||||
newEnt.CreatedBy = ent.CreatedBy;
|
||||
|
||||
_repositoryWrapper.SetRepository<Payment>()
|
||||
.Update(newEnt);
|
||||
|
@ -40,9 +42,9 @@ public class CreateOrUpdatePaymentCommandHandler : IRequestHandler<CreateOrUpdat
|
|||
var newEnt = Payment.Create(request.FactorNumber, request.Amount, request.Description, request.TransactionCode,
|
||||
request.CardPan, request.Authority, request.Type, request.Status, request.OrderId, request.UserId);
|
||||
newEnt.Id = orderPayment.Id;
|
||||
newEnt.CreatedAt = orderPayment.CreatedAt;
|
||||
newEnt.CreatedAt = orderPayment.CreatedAt == DateTime.MinValue ? DateTime.Now : orderPayment.CreatedAt;
|
||||
newEnt.CreatedBy = orderPayment.CreatedBy;
|
||||
|
||||
|
||||
_repositoryWrapper.SetRepository<Payment>()
|
||||
.Update(newEnt);
|
||||
|
||||
|
|
Loading…
Reference in New Issue