ГГ
This commit is contained in:
parent
37dd35b29c
commit
f9d725d4b7
@ -117,8 +117,8 @@ namespace BankBusinessLogic.BusinessLogic
|
||||
DateTo = model.DateTo!.Value,
|
||||
OperationsRequests = CreateReportOperationsRequests(new CardSearchModel
|
||||
{
|
||||
DateFrom = model.DateFrom!.Value,
|
||||
DateTo = model.DateTo!.Value,
|
||||
DateFrom = model.DateFrom.Value,
|
||||
DateTo = model.DateTo.Value,
|
||||
})
|
||||
});
|
||||
}
|
||||
|
@ -65,11 +65,11 @@ namespace BankDatabaseImplement.Implements
|
||||
{
|
||||
CardNumber = c.Number,
|
||||
SenderOperations = context.Operations
|
||||
.Where(x => x.OperationTime >= model.DateFrom && x.OperationTime <= model.DateTo && x.SenderCardId == model.Id)
|
||||
.Where(x => x.OperationTime >= model.DateFrom && x.OperationTime <= model.DateTo && x.SenderCardId == c.Id)
|
||||
.Select(t => t.GetViewModel)
|
||||
.ToList(),
|
||||
RecipientOperations = context.Operations
|
||||
.Where(x => x.OperationTime >= model.DateFrom && x.OperationTime <= model.DateTo && x.RecipientCardId == model.Id)
|
||||
.Where(x => x.OperationTime >= model.DateFrom && x.OperationTime <= model.DateTo && x.RecipientCardId == c.Id)
|
||||
.Select(t => t.GetViewModel)
|
||||
.ToList(),
|
||||
Requests = context.Requests
|
||||
|
Loading…
Reference in New Issue
Block a user