コード例 #1
0
        public HttpResponseMessage FindById(int id)
        {
            var item = _forumManager.FindById(id);

            return(new HttpResponseMessage(HttpStatusCode.OK)
            {
                Content = new ObjectContent <object>(item, Configuration.Formatters.JsonFormatter)
            });
        }