simon-s-99 / camp-sleepaway-db-uppg2

Entity Framework code-first application by Adam Kumlin, Samuel Lööf & Simon Sörqvist.
MIT License
1 stars 1 forks source link

Change file & code structure, attempt to follow MVC structure. #39

Closed simon-s-99 closed 10 months ago

simon-s-99 commented 10 months ago

Filetree should be changed to better follow MVC (Model-Viewer-Controller) or any other structure for that matter. We need to pick one and stick with it. This will provide easier overview and readability.

Most of our views and controls happen in Spectre console and should be treated as the same thing but we should try to achieve some separation of concerns.

Partial suggestion: Move all edit/add/search/and-so-on methods into a folder called submenus, move example-data related things into one and the same folder, merge certain .cs files (and methods) into one helper file

simon-s-99 commented 10 months ago

We should have decided on a common file-structure and coding convention before starting the project. This would have given us a clearer overview of the code and the flow of control.

At this stage in the project it is too comprehensive to change and a little unnecessary.