Beispiel #1
0
        public async Task <IActionResult> EnrollStudentAsync(EnrollStudentRequest request)
        {
            EnrollStudentResponse enrollStudentResponse = await _dbService.EnrollStudentAsync(request);

            if (enrollStudentResponse == null)
            {
                return(BadRequest());
            }

            return(this.StatusCode(201, enrollStudentResponse));
        }