예제 #1
0
 public IActionResult Enroll(StudentEnroll newStudent)
 {
     try
     {
         return(CreatedAtAction("Enroll", _dbService.Enroll(newStudent)));
     }
     catch (Exception e)
     {
         return(NotFound("Exception: " + e.Message));
     }
 }