Пример #1
0
 // 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();
 }
Пример #2
0
 public BaseActivity()
 {
     dbContext = new MyRealtyWebDBEntities();
     context = new DataFunctions();
 }