I’m creating a personal fine arts website. There is a artworks gallery and photo gallery in website that be shown with the same way.
Which is better to manipulate it:
One Gallery controller with different action(photo and artworks)
Or two different controller
Or is there better idea?
If first approach is good what is best way to prepare view files?
If the data tables are separate – one for artworks and one for photos – then 2 controllers (each with their own separate views) would be better. Otherwise it’s simpler to have 1 controller and different actions for the different types because they would share common code.
I did it with two controllers. I think it’s more readable and reusable. There are two tables.