コード例 #1
0
        public HttpResponseMessage GetModelByNo(string modelNo)
        {
            var model = ModelInfoRepository.GetModelByNo(modelNo.ToString());
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, model);

            return(response);
        }
コード例 #2
0
        public HttpResponseMessage Get()
        {
            //Clear Table before copy model from PeachTree
            ModelInfoRepository.DeleteModel();

            var models = ReachTreeRepository.getModelInfo();


            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, models);

            return(response);
        }