Пример #1
0
        public async Task ListTransactions([CanBeNull, Summary("Filter only to transactions with this user")] IUser other = null)
        {
            //Get all transactions in both directions
            var all = (await _transactions.GetAllTransactions(Context.User.Id, other?.Id)).ToArray();

            if (all.Length == 0)
            {
                await ReplyAsync("No transactions");
            }
            else
            {
                await DisplayTransactions(all);
            }
        }