public async Task <IActionResult> StudentAssignment(
            [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "assignment/submit")]
            [RequestBodyType(typeof(StudentAssignment), "Submit student assignment")] 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();
            StudentAssignment requestData = JsonConvert.DeserializeObject <StudentAssignment>(requestBody);

            await _assignmentService.CreateStudentAssigments(requestData);

            return(new OkObjectResult(new { message = "Student assignment submited successfull." }));
        }