Beispiel #1
0
        public async Task <ActionResult> GetOneStudent(int studentId)
        {
            var result = await _studentRepository.GetOneStudent(studentId);

            if (result.StatusCode == Helpers.Success)
            {
                return(StatusCode(StatusCodes.Status200OK, result));
            }
            else
            {
                return(StatusCode(StatusCodes.Status400BadRequest, result));
            }
        }