コード例 #1
0
        public async Task <Parte> ListarEnvolvidosPorId(Guid userGuid, int id)
        {
            var context = _sessionContextData.ObterUserContext(userGuid);
            var ws      = new ParteServiceSoapClient(soapConfiguration, context.UrlServico + ServicesUrlConstants.PARTE);
            var result  = await ws.ObtemAsync(context.ContextHeader, id);

            return(_mapper.Map <Parte>(result.ObtemResult));
        }
コード例 #2
0
        public async Task <List <Parte> > ListarEnvolvidosPorTermo(Guid userGuid, string termo)
        {
            var context = _sessionContextData.ObterUserContext(userGuid);
            var ws      = new ParteServiceSoapClient(soapConfiguration, context.UrlServico + ServicesUrlConstants.PARTE);
            var result  = await ws.PesquisaPorNomeAsync(context.ContextHeader, termo);

            return(_mapper.Map <List <Parte> >(result.PesquisaPorNomeResult));
        }