Mineplex2018-withcommit/Website/LOC.Website.Web/Areas/Manage/Controllers/ServerManagementController.cs
Jonathan Williams 3fb52c5c71 Initial Commit
2013-08-27 08:14:08 -07:00

29 lines
695 B
C#

namespace LOC.Website.Web.Areas.Manage.Controllers
{
using System.Web.Mvc;
using Common;
using Newtonsoft.Json;
public class ServerManagement : ManageControllerBase
{
private readonly IGameServerMonitor _gameServerMonitor;
public ServerManagement()
{
_gameServerMonitor = GameServerMonitor.Instance;
}
[HttpPost]
public ActionResult UpdateServerStatuses()
{
var json = JsonConvert.SerializeObject(_gameServerMonitor.ServerStatuses);
return Content(json, "application/json");
}
public ActionResult Index()
{
return View();
}
}
}