Пример #1
0
        private dynamic GetServerStats(dynamic parameters)
        {
            string endpoint    = parameters.ipOrHostname + "-" + parameters.port;
            var    serverModel = Db.FindById <GameServer>(endpoint);

            if (serverModel == null)
            {
                return(HttpStatusCode.NotFound);
            }
            return(Response.AsJson(DbProcessor.GetServerStats(endpoint)));
        }