public IActionResult Update(Story myStoryies) { GetStories myStories = new GetStories(); int lastRecord = myStories.Update(myStoryies); MyOder order = new MyOder(); order.MyData = lastRecord.ToString(); //order.MyData = "1"; return(Ok(order)); }
public HttpResponseMessage Update(Story myStoryies) { GetStories myStories = new GetStories(); int lastRecord = myStories.Update(myStoryies); MyOder order = new MyOder(); order.MyData = lastRecord.ToString(); //order.MyData = "1"; return(Request.CreateResponse <MyOder>(HttpStatusCode.Created, order)); }