Course - masonbesmer/Abet-Course-Assessment-Tool-Backend GitHub Wiki
The Course class represents a course in your system, including properties like CourseId, CoordinatorEUID, CourseNumber, and Department. It also includes methods for managing courses in the system, such as adding, editing, and deleting courses, as well as retrieving course information.
public async static Task AddCourse(string term, int year, Course course): Adds a new course to the database for a specific term and year.
public async static Task<Course> GetCourse(string term, int year, string department, string courseNumber): Retrieves a course from the database based on the term, year, department, and course number.
public async static Task EditCourse(string term, int year, string department, string courseNumber, Course NewValue): Edits an existing course in the database.
public async static Task DeleteCourse(string term, int year, string department, string courseNumber): Deletes a course from the database based on the term, year, department, and course number.
public static async Task<List<Section>> GetSectionsByCourse(string term, int year, string department, string courseNumber): Retrieves all sections of a course for a specific term, year, department, and course number.
public static async Task<List<string>> getMajorsThatRequireCourse(string term, int year, string department, string courseNumber): Retrieves a list of majors that require a specific course.
public static async Task<List<Course>> GetCoursesByDepartment(string term, int year, string department): Retrieves all courses offered by a department for a specific term and year.
public static async Task<List<string>> GetCourseNamesByDepartment(string term, int year, string department): Retrieves the names of all courses offered by a department for a specific term and year.
public static async Task<List<string>> GetDepartments(string term, int year): Retrieves a list of departments offering courses for a specific term and year.
public static async Task<List<MajorOutcome>> GetMajorOutcomesSatisfied(string term, int year, string department, string courseNumber): Retrieves a list of major outcomes satisfied by a specific course.
public static async Task<List<Course>> GetCourses(string term, int year): Retrieves all courses offered for a specific term and year.