示例#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");
 }