public ActionResult Start(ServerStatus Status) { var model = ServerStatus.Start(Status.StartVisible); model.StartVisible = Status.StartVisible; return(View("Index", model)); }
public ActionResult Enable(ServerStatus Status) { Status.IsDisabled = false; var model = ServerStatus.Start(Status.StartVisible); model.StartVisible = Status.StartVisible; return(View("Index", model)); }
public ActionResult EmptyLog(ServerStatus Status) { ServerStatus.KillAll(); try { if (System.IO.File.Exists(Options.LogFile)) { System.IO.File.Delete(Options.LogFile); } } catch { } ServerStatus.Start(Status.StartVisible); var model = new ServerStatus(); model.StartVisible = Status.StartVisible; return(View("Index", model)); }