I am building a website using ASP.NET. I need to auto-refresh my webpage according to the database changes every minute. I have been reading about System.Timers but not sure how to implement it on MVC controller. Here's my sample code.
public class HomeController : Controller
{
public ActionResult Index()
{
//write the code to refresh page every 1 min
var appSettings = ConfigurationManager.AppSettings;
MySQL msql = new MySQL();
List<string> status = msql.SelectList("Select * from table");
//query database
return View();
}
}