diff --git a/BankYouBankrupt/BankYouBankruptDatabaseImplement/Implements/MoneyTransferStorage.cs b/BankYouBankrupt/BankYouBankruptDatabaseImplement/Implements/MoneyTransferStorage.cs index db6eccd..868d64e 100644 --- a/BankYouBankrupt/BankYouBankruptDatabaseImplement/Implements/MoneyTransferStorage.cs +++ b/BankYouBankrupt/BankYouBankruptDatabaseImplement/Implements/MoneyTransferStorage.cs @@ -45,7 +45,12 @@ namespace BankYouBankruptDatabaseImplement.Implements if (model.DateTo.HasValue) result = result.Where(x => x.DateOperation <= model.DateTo).ToList(); - if (model.ClientId.HasValue) result = result.Where(x => (x.AccountPayeer.ClientId == model.ClientId || x.AccountSender.ClientId == model.ClientId)).ToList(); + if (model.ClientId.HasValue) + { + result = result.Where(x => x.AccountSender != null) + .Where(x => (x.AccountPayeer.ClientId == model.ClientId || x.AccountSender.ClientId == model.ClientId)) + .ToList(); + } return result.Select(x => x.GetViewModel).ToList(); } diff --git a/BankYouBankrupt/BankYouBankruptRestAPI/Отчёт_по_счетам.pdf b/BankYouBankrupt/BankYouBankruptRestAPI/Отчёт_по_счетам.pdf new file mode 100644 index 0000000..a8268f7 Binary files /dev/null and b/BankYouBankrupt/BankYouBankruptRestAPI/Отчёт_по_счетам.pdf differ