Example #1
0
        public ActionResult Manage(LoggingManageModel model)
        {
            try
                {
                    string[] logLevels = new string[] { "Warn" };
                    loggingRepository.ClearLog(model.LogSourceName, model.StartDate, model.EndDate, logLevels);

                    ViewData["Message"] = "The log has been cleared";

                    return View(model);
                }
                catch
                {
                    return View();
                }
        }
Example #2
0
        //
        // GET: /Logging/Manage
        public ActionResult Manage()
        {
            LoggingManageModel model = new LoggingManageModel();

                return View(model);
        }