コード例 #1
0
        public async Task <IActionResult> Update([FromServices] StudentsService studentsService, [Required] Guid studentId)
        {
            if (ModelState.IsValid)
            {
                string token = User.FindFirst("Token").Value;

                ResultModel <StudentDisciplineVO> response = await studentsService.GetStudentTaskAsync(token, studentId);

                return(View("/Views/Coordinator/Students/Update.cshtml", response));
            }

            return(BadRequest());
        }