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)); }
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); }