Enhance the website to include forms that allow you to make and edit students, instructors, and courses.
Question:
Enhance the website to include forms that allow you to make and edit students, instructors, and courses. The Student entry page should also allow students to register for existing courses. The entry forms can be placed on the same screen as the existing pages that show the list of students, instructors, and courses, or they can be added on new pages.
Use Entity Framework Core migrations to take the classes for students, instructors, and courses and make a database. Since students can enroll in multiple courses and courses can hold multiple students, this is a many-to-many relationship. You'll need to define a class and table called StudentCourse that holds records linking students to courses. Use LINQ to generate a list of Students for each course and display it in the modal dialog you developed in Assignment 1.
You do not need to add validation at this point to the front-end, but you should have validation on the back-end that prevents bad data from entering the database. Define a data access layer that can do validation and error-handling.
Your application should also use DTOs between the data layer and the controller rather than passing around the actual database entity classes. I am attaching the codes that should be enhanced.
Introduction To Health Care Management
ISBN: 9781284081015
3rd Edition
Authors: Sharon B. Buchbinder, Nancy H. Shanks