public HttpResponseMessage updateAnimal(AnimalTypes myAnimalTypes) { GetStories myStories = new GetStories(); int lastRecord = myStories.updateAnimal(myAnimalTypes.ID, myAnimalTypes.AnimalType); MyOder order = new MyOder(); order.MyData = lastRecord.ToString(); return(Request.CreateResponse <MyOder>(HttpStatusCode.Created, order)); }