Esempio n. 1
0
        // GET: api/GetPlayers
        public HttpResponseMessage Get()
        {
            var    players = dh.GetAllPlayers();
            var    j       = new JavaScriptSerializer();
            string str     = j.Serialize(players);

            return(Request.CreateResponse(HttpStatusCode.OK, str));
        }