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)); }
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)); }