public HttpResponseMessage GetModelByNo(string modelNo) { var model = ModelInfoRepository.GetModelByNo(modelNo.ToString()); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, model); return(response); }
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); }