コード例 #1
0
        public HttpResponseMessage Insert(Story myStoryies)
        {
            GetStories myStories = new GetStories();



            int    lastRecord = myStories.Insert(myStoryies);
            MyOder order      = new MyOder();

            order.MyData = lastRecord.ToString();
            return(Request.CreateResponse <MyOder>(HttpStatusCode.Created, order));
        }
コード例 #2
0
        public IActionResult Insert(Story myStoryies)
        {
            GetStories myStories = new GetStories();



            int    lastRecord = myStories.Insert(myStoryies);
            MyOder order      = new MyOder();

            order.MyData = lastRecord.ToString();


            return(Ok(order));

            //return Request.CreateResponse<MyOder>(HttpStatusCode.Created, order);
        }