public async Task <IActionResult> AssessmentShare(
            [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "assessment/share")]
            [RequestBodyType(typeof(AssessmentShare), "Assessment share")] 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();
            AssessmentShare requestData = JsonConvert.DeserializeObject <AssessmentShare>(requestBody);

            string result;

            try
            {
                result = await _assessmentService.AssessmentShare(requestData);
            }
            catch (HttpResponseException ex)
            {
                return(new ConflictObjectResult(ex.Response.Content));
            }
            return(new OkObjectResult(new { message = result }));
        }