示例#1
0
        public HttpResponseMessage List(int deviceId)
        {
            var repo   = new IssueRepository();
            var entity = repo.List(new Issue {
                DeviceId = deviceId
            });

            var json = JsonConvert.SerializeObject(entity);

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