public CreateOrUpdateProfileConsumerResponse CreateOrUpdateProfileConsumer(CreateOrUpdateProfileConsumerRequest req)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.CreateOrUpdateProfileConsumer(agent, req);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
Пример #2
0
 public virtual async Task <CreateOrUpdateProfileConsumerResponse> CreateOrUpdateProfileConsumerAsync(Agent agent, CreateOrUpdateProfileConsumerRequest createOrUpdateProfileConsumerRequest)
 {
     return(await AgentConnect.CreateOrUpdateProfileConsumerAsync(agent, createOrUpdateProfileConsumerRequest));
 }
Пример #3
0
 public virtual CreateOrUpdateProfileConsumerResponse CreateOrUpdateProfileConsumer(Agent agent, CreateOrUpdateProfileConsumerRequest createOrUpdateProfileConsumerRequest)
 {
     return(AgentConnect.CreateOrUpdateProfileConsumer(agent, createOrUpdateProfileConsumerRequest));
 }
Пример #4
0
 public CreateOrUpdateProfileConsumerData(CreateOrUpdateProfileConsumerRequest createOrUpdateProfileRequest)
 {
     Request = createOrUpdateProfileRequest;
 }
Пример #5
0
        public AcApiResponse <CreateOrUpdateProfileConsumerResponse, ApiData> CreateOrUpdateProfileConsumer(CreateOrUpdateProfileConsumerRequest req)
        {
            var resp = _agentConnectIntegration.CreateOrUpdateProfileConsumer(req);

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

            return(apiResp);
        }
Пример #6
0
        public IHttpActionResult CreateOrUpdateProfileConsumer(CreateOrUpdateProfileConsumerRequest req)
        {
            var consumerRespVm = _business.CreateOrUpdateProfileConsumer(req);

            return(Ok(consumerRespVm));
        }