Мелочи жизни

This commit is contained in:
Artyom_Yashin 2024-05-02 19:01:39 +04:00
parent bfc5e87973
commit 01ee30def3

View File

@ -27,8 +27,7 @@ namespace BankDatabaseImplement.Implements
.Where(x => (
(!model.Id.HasValue || x.Id == model.Id) &&
(!model.DateFrom.HasValue || x.OperationTime >= model.DateFrom ) &&
(!model.DateTo.HasValue || x.OperationTime <= model.DateTo) &&
(!model.CardId.HasValue || x.RecipientCardId == model.CardId || x.SenderCardId == model.CardId)
(!model.DateTo.HasValue || x.OperationTime <= model.DateTo)
)).Select(x => x.GetViewModel).ToList();
}
public OperationViewModel? GetElement(OperationSearchModel model)