Ejemplo n.º 1
0
        public HttpResponseMessage List()
        {
            var repo     = new AppSettingsRepository();
            var entities = repo.List();

            var json = JsonConvert.SerializeObject(entities);

            return(new HttpResponseMessage {
                Content = new StringContent(json, Encoding.UTF8, "application/json")
            });
        }