コード例 #1
0
        public IActionResult PromoteStudent(Promote_StudentRequest promotion)
        {
            var response = _service.PromoteStudents(promotion);

            if (response != null)
            {
                return(Ok(response));
            }
            return(BadRequest());
        }
コード例 #2
0
 public IActionResult PromoteStudents(Promote_StudentRequest request)
 {
     return(RespoState(_service.PromoteStudents(request)));
 }
コード例 #3
0
ファイル: EnrollmentsController.cs プロジェクト: s18727/cw6
 public IActionResult PromoteStudents(string studies, int semester)
 {
     return(Created("", _service.PromoteStudents(semester, studies)));
 }