public async Task <IActionResult> GetAccount(int userId, string Name)
        {
            if (userId != int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value))
            {
                return(Unauthorized());
            }

            var AccountFromRepo = await _repo.GetAccountByName(userId, Name);

            AccountForReturnDto AccountForReturn = _mapper.Map <AccountForReturnDto>(AccountFromRepo);

            return(Ok(AccountForReturn));
        }
        public async Task <IActionResult> GetUserBankAccount(int userId)
        {
            if (userId != int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value))
            {
                return(Unauthorized());
            }

            Account BankAccount = await _repo.GetBankAccount(userId);

            AccountForReturnDto AccountForReturn = _mapper.Map <AccountForReturnDto>(BankAccount);

            return(Ok(AccountForReturn));
        }