public void AddStudentAdviser(string userName, int teacherId) { if (string.IsNullOrEmpty(userName)) { throw new BadRequestException("userName can not be empty"); } _StudentService.AddStudentAdviser(userName, teacherId); }