Ejemplo n.º 1
0
        public async Task <HttpResponseMessage> AddVariationAsync([FromBody] AddVariationRequest request)
        {
            var variationDetails = await ExecuteAsync(new AddVariation()
            {
                GoogleExperimentId = request.ExperimentId,
                NodeId             = request.NodeId
            });

            return(CreateResponse(variationDetails));
        }
Ejemplo n.º 2
0
        public async Task <HttpResponseMessage> AddVariationAsync(string profileId, [FromBody] AddVariationRequest request)
        {
            var variationDetails = await ExecuteAsync(new AddVariation(AccountConfig.GetByUniqueId(profileId))
            {
                GoogleExperimentId = request.ExperimentId,
                NodeId             = request.NodeId
            });

            return(CreateResponse(variationDetails));
        }