// PUT: api/DataBase/5 public JToken Put(int id, [FromBody] Users data) // { Users toChange = data; if (toChange.getID() == id) { return(dataBase.Update(id, toChange.getPassword(), toChange.getGender())); } else { return("Error"); } }