Makes a consistent interface for getting sections and courses based on their primary keys, and encapsulates the API call into a fillData() call.
Can easily be improved by making Course.prototype.getSections() prefill data for Section, much like how ejs is prefilled for Course. This will reduce API calls by (n-m), where n is the number of sections and m is the number of courses.
Makes a consistent interface for getting sections and courses based on their primary keys, and encapsulates the API call into a fillData() call.
Can easily be improved by making Course.prototype.getSections() prefill data for Section, much like how ejs is prefilled for Course. This will reduce API calls by (n-m), where n is the number of sections and m is the number of courses.