So, we are going to be creating a view that has interchangeable images.
Basically, this process is automated to the point where we can log on to the admin site, click a button, and that button grabs the next set of images and changes the src attribute of all the images already on the page.
Problem is, we want this to run daily every 24 hours, but I’m not sure how to set that up. MVC is stateless, so we wouldn’t be able to put a timer in the controller, and if we had say a SQL Job setup, I’m not sure how the site would be notified of that event – if that route is even possible.
What’s one way I can do this?
You should look up the paths from SQL Server inside the controller every time you request the page.