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(); } }
// // GET: /Logging/Manage public ActionResult Manage() { LoggingManageModel model = new LoggingManageModel(); return View(model); }