Ejemplo n.º 1
0
        public async Task <IActionResult> BalanceMovements()
        {
            var client = await _clientRepository.GetByEmailAsync(this.User.Identity.Name);

            if (client == null)
            {
                return(NotFound());
            }

            var transactions = _transactionRepository.GetAllByClientId(client.Id).OrderByDescending(t => t.TransactionDate).ToList();


            var model = _converterHelper.ToBalanceMovementsViewModel(transactions);

            return(View(model));
        }