Commit 42a76b68 authored by NewbieOrange's avatar NewbieOrange
Browse files

Remove return value of addUser methods

parent 322aa40e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ import java.util.List;

@ParametersAreNonnullByDefault
public interface InstructorService {
    int addInstructor(int userId, String firstName, String lastName);
    void addInstructor(int userId, String firstName, String lastName);

    /**
     *
+1 −2
Original line number Diff line number Diff line
@@ -82,9 +82,8 @@ public interface StudentService {
     * @param firstName
     * @param lastName
     * @param enrolledDate
     * @return the student id of new inserted line, if adding process is successful.
     */
    int addStudent(int userId, int majorId, String firstName, String lastName, Date enrolledDate);
    void addStudent(int userId, int majorId, String firstName, String lastName, Date enrolledDate);

    /**
     * Search available courses (' sections) for the specified student in the semester with extra conditions.