public CreateOrUpdateProfileSenderResponse CreateOrUpdateProfileSender(CreateOrUpdateProfileSenderRequest createOrUpdateProfileSenderRequest) { var agent = AuthIntegration.GetAgent(); var response = _agentConnect.CreateOrUpdateProfileSender(agent, createOrUpdateProfileSenderRequest); CheckFlagsForDataChange(response.Payload?.Flags, agent); return(response); }
public CreateOrUpdateProfileSenderData(CreateOrUpdateProfileSenderRequest createOrUpdateProfileRequest) { Request = createOrUpdateProfileRequest; }
public virtual async Task <CreateOrUpdateProfileSenderResponse> CreateOrUpdateProfileSenderAsync(Agent agent, CreateOrUpdateProfileSenderRequest createOrUpdateProfileSenderRequest) { return(await AgentConnect.CreateOrUpdateProfileSenderAsync(agent, createOrUpdateProfileSenderRequest)); }
public virtual CreateOrUpdateProfileSenderResponse CreateOrUpdateProfileSender(Agent agent, CreateOrUpdateProfileSenderRequest createOrUpdateProfileSenderRequest) { return(AgentConnect.CreateOrUpdateProfileSender(agent, createOrUpdateProfileSenderRequest)); }
public AcApiResponse <CreateOrUpdateProfileSenderResponse, ApiData> CreateOrUpdateProfileSender(CreateOrUpdateProfileSenderRequest req) { var resp = _agentConnectIntegration.CreateOrUpdateProfileSender(req); var apiResp = new AcApiResponse <CreateOrUpdateProfileSenderResponse, ApiData> { BusinessMetadata = MapperHelper.SetResponseProperties(resp.Payload?.Flags, DataSource.AgentConnect), ResponseData = resp }; return(apiResp); }
public IHttpActionResult CreateOrUpdateProfileSender(CreateOrUpdateProfileSenderRequest req) { var createOrUpdateProfileSender = _business.CreateOrUpdateProfileSender(req); return(Ok(createOrUpdateProfileSender)); }
public override CreateOrUpdateProfileSenderResponse CreateOrUpdateProfileSender(Agent agent, CreateOrUpdateProfileSenderRequest createOrUpdateProfileSenderRequest) { if (agent.IsInTrainingMode) { return(_traingModeRepository.MockCreateOrUpdateProfileSender()); } return(base.CreateOrUpdateProfileSender(agent, createOrUpdateProfileSenderRequest)); }