Мелочи жизни
This commit is contained in:
parent
bfc5e87973
commit
01ee30def3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user