예제 #1
0
        public IHttpActionResult DwProfile([FromBody] DwProfileRequest dwProfileReq)
        {
            dwProfileReq.ThrowIfNull(nameof(dwProfileReq));
            var resp = _internalBusiness.DwProfile(dwProfileReq);

            return(Ok(resp));
        }
        public DwProfileResponse DwProfile(DwProfileRequest dwProfileRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.DwProfile(agent, dwProfileRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
예제 #3
0
        public AcApiResponse <DwProfileResponse, ApiData> DwProfile(DwProfileRequest req)
        {
            var resp = agentConnectIntegration.DwProfile(req);

            var apiResp = new AcApiResponse <DwProfileResponse, ApiData>
            {
                BusinessMetadata = MapperHelper.SetResponseProperties(resp.Payload?.Flags, DataSource.AgentConnect),
                ResponseData     = resp
            };

            return(apiResp);
        }
예제 #4
0
 public virtual async Task <DwProfileResponse> DwProfileAsync(Agent agent, DwProfileRequest dwProfileRequest)
 {
     return(await AgentConnect.DwProfileAsync(agent, dwProfileRequest));
 }
예제 #5
0
 public virtual DwProfileResponse DwProfile(Agent agent, DwProfileRequest dwProfileRequest)
 {
     return(AgentConnect.DwProfile(agent, dwProfileRequest));
 }