Exemplo n.º 1
0
        public async Task <GetAgentCarrierDto> getAgentCarrierInitial(int parentId)
        {
            GetAgentCarrierDto oGetAgentCarrierDto = await _AgentCarrierService.getAgentCarrierInitial(new BaseDto { id = parentId });

            if (oGetAgentCarrierDto == null)
            {
                throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.NotFound));
            }
            else
            {
                return(oGetAgentCarrierDto);
            }
        }