I am starting my first serious ASP.NET MVC application and I need someone to explain to me how to fold it correctly. (all the applications that I have created so far, where I only tested the applications, and I did not care about stratifying it correctly)
I spent some time searching the Internet, for example, from a properly imposed MVC application, but all topics where either are incomplete or just tons of text without a real example.
Let's say I have an e-commerce site (any other example will be fine), can someone write me an example of how you structure this application (for example, when a user buys a product)
What would your interfaces and classes look like , where would you place them , where would you place classes to retrieve data from a database, etc. I do not need the implementation of these classes only by their position of the name, function or properties that they store.
for instance
IProduct → interface in the second project (Project.Whatever → someFolder)
Properties: Name, Price ...
IProductRepsitory → position in the project
Functions: BuyProduct (product product)
Now that you have identified all the details that you think will be needed to understand your example, write down the data about the program flow from the controller to create a view of which function you are calling from the controller, the function call function that you called from the controller, etc. d. until you finally share when you return to the controller and create the view.
I know that an explanation will require a longer record, but you do not need to enter too many details, but enough so that I can figure out how to correctly build the mvc application
Thank you in advance