This commit is contained in:
Artyom_Yashin 2024-05-26 15:50:06 +04:00
parent 37dd35b29c
commit f9d725d4b7
2 changed files with 4 additions and 4 deletions

View File

@ -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,
})
});
}

View File

@ -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