Beispiel #1
0
        public async Task <IActionResult> GetAll()
        {
            var command = new GetAllTransactions();

            await DispatchAsync(command);

            return(Ok(Json(command.transactions)));
        }
Beispiel #2
0
        protected virtual void OnGetAllTransactions(GetAllTransactionsEventArgs args)
        {
            EventHandler <GetAllTransactionsEventArgs> tmp = GetAllTransactions;

            if (tmp != null)
            {
                GetAllTransactions?.Invoke(this, args);
            }
        }
 public RequestAllTransactions(GetAllTransactions getAllTransactions)
 {
     _getAllTransactions = getAllTransactions;
 }