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