Пример #1
0
        public ActionResult Index()
        {
            var evaluations = db.Evaluations.Include(e => e.Plaintiff)
                .Include(e => e.Contact)
                .Where(e => e.IsComplete == false)
                .OrderBy(e => e.DayTwo);
            var repo = new DbRepository();

            //Call to daily backup method
            //repo.AutoBackupDB();

            ViewBag.Message = "Currently Open Evaluations";

            return View(evaluations.ToList());
        }
Пример #2
0
 public ActionResult Restore()
 {
     var repo = new DbRepository();
     repo.RestoreDb();
     return RedirectToAction("Index");
 }
Пример #3
0
 public ActionResult Backup()
 {
     var repo = new DbRepository();
     repo.BackupDB();
     return RedirectToAction("Index");
 }