Compare commits
2 Commits
c0a5e57791
...
9c2aedc608
Author | SHA1 | Date | |
---|---|---|---|
9c2aedc608 | |||
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