예제 #1
0
        public ActionResult Logs()
        {
            var model = new LogsModel();
            model.LoadLogs();

            return View(model);
        }
예제 #2
0
        public ActionResult DeleteOldLogs()
        {
            // TODO: ????
            var model = new LogsModel();
            // model.DeleteOldLogs();

            ShowSuccessMessage("Logs older than a month has been removed.");

            return RedirectToAction("Logs");
        }