// PUT /convention/5 public User Put(User user) { return user; }
public void Put(int id, User user) { }
// POST /convention public User Post(User user) { // echo entity with Id populated and can create location. user.Id = users.Length; // Simulate Id gen. return user; }
public User Create(User user) { // echo entity with Id populated and can create location. return user; }