jbogard / ContosoUniversity

Contoso University sample re-done the way I would build it
Apache License 2.0
393 stars 131 forks source link

ViewModels Folder? #8

Closed StevenTCramer closed 6 years ago

StevenTCramer commented 9 years ago

Sticking with the idea of eliminating layers and creating slices:

The following two files are never used and can be deleted.

AssignedCourseData.cs InstructorIndexData.cs

The EnrollmentDateGroup class defined in EnrollmentDateGroup.cs could be moved into the Home/UiController class given that is the only scope in which it is being used other than the About.cshtml file, which should be updated to

@model IEnumerable<ContosoUniversity.Features.Home.UiController.EnrollmentDateGroup>

Then the entire ViewModel Folder can be eliminated. The concept of the Viewmodels are now included in Features.