/// <summary>
        /// Return the list of ATM withdraws.
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            var accountId = GetCurrentAccount();

            AccountBasicInfo();

            var model = _atmWithdrawService.GetAtmWithdrawsByAccountId(accountId).OrderByDescending(x => x.DateExpenditure).ThenByDescending(x => x.Id).ToList();

            return(View(model));
        }
 private void PopulateDropDownLists(ExpenditureEditModel expenditureModel)
 {
     expenditureModel.AvailableInternalAccounts = _bankAccountService.GetAccountsByUser(CurrentUser).Where(x => x.Id != GetCurrentAccount()).Select(x => new SelectListItem()
     {
         Value = x.Id.ToString(), Text = x.Name
     }).ToList();
     expenditureModel.AvailableExpenditureTypes = _expenditureTypeService.GetExpenditureTypes().Select(x => new SelectListItem()
     {
         Value = x.Id.ToString(), Text = x.Name
     }).OrderBy(x => x.Text).ToList();
     expenditureModel.AvailablePaymentMethods = _paymentMethodService.GetPaymentMethods().ToList();
     expenditureModel.AvailableAtmWithdraws   = _atmWithdrawService.GetAtmWithdrawsByAccountId(GetCurrentAccount()).Where(x => !x.IsClosed).OrderBy(x => x.DateExpenditure).Select(x => new SelectListItem()
     {
         Value = x.Id.ToString(), Text = x.Description
     }).ToList();
 }