Good morning, I am studying and I do not have much idea of how to do the following:
I have products as an entity. In the MVC model I have its Controller and its ProductViewModels. Well I have used this for the Admin, this create modifies and deletes products. But the question I have now is:
Customers see the products to buy them, how do I create new in index for these customers? I mean folder structure, in the same controller ...
I know I have to make a new model for these, so they see something less than the admin. But the question is the controller, since I used the Index to list the products to admin ... How do I do it to see the products for the user? You see products- > list with an image, then click and see the details (used by admin too) ....
I already have the product folder created in the view. Greetings