예제 #1
0
        public async Task <BancoResposta> GetID(string codigo)
        {
            // usar o repositorio para realizar a operação
            //***********************************************************************************************
            var result = await _bancoRepository.GetID(codigo);

            // mapear o RESULT para a ViewModel
            //***********************************************************************************************
            return(_mapper.Map <BancoResposta>(result));
        }