public async Task <IActionResult> ContentDistribution(
            [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "content/distribution")]
            [RequestBodyType(typeof(Distribution), "Content distribution")] HttpRequest request)
        {
            var validateStatus = base.AuthorizationStatus(request);

            if (validateStatus != System.Net.HttpStatusCode.Accepted)
            {
                return(new BadRequestObjectResult(validateStatus));
            }

            string       requestBody = await new StreamReader(request.Body).ReadToEndAsync();
            Distribution requestData = JsonConvert.DeserializeObject <Distribution>(requestBody);

            try
            {
                await _contentService.ContentDistribution(requestData);
            }
            catch (HttpResponseException ex)
            {
                return(new ConflictObjectResult(ex.Response.Content));
            }
            return(new OkObjectResult(new { message = "Content distribution successful." }));
        }