public IActionResult AddStudentSubjectTest([FromBody] StudentSubjectScoreDTO value) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { //var idToken = HttpContext.GetTokenAsync(JwtBearerDefaults.AuthenticationScheme, "access_token"); //var token = idToken.Result; var studentSubjectScore = _studentService.AddStudentSubjectScore(value, ""); if (studentSubjectScore != null) { return(Ok(studentSubjectScore)); } return(BadRequest(new { message = "Cannot Add Student Subject Score" })); } catch (Exception e) { return(BadRequest(e)); } }