Esempio n. 1
0
        public HttpResponseMessage Get()
        {
            var layers = mapRepository.GetLayers();
            var panels = mapRepository.GetControlPanels();
            var info   = new InfoModel(layers, panels);
            var json   = JsonConvert.SerializeObject(info);

            return(Request.CreateResponse(HttpStatusCode.OK, json, new MediaTypeHeaderValue("application/json")));
        }