// PUT api/user/5
        public void Put(int id, user user)
        {
            dbUserDataContext db = new dbUserDataContext();
            user tmp = db.users.SingleOrDefault(p => p.id == id);
            tmp.firstname = user.firstname;
            tmp.lastname = user.lastname;
            tmp.age = user.age;

            db.SubmitChanges();
        }
 partial void Deleteuser(user instance);
 partial void Updateuser(user instance);
 partial void Insertuser(user instance);
 // POST api/user
 public void Post(user user)
 {
     dbUserDataContext db = new dbUserDataContext();
     db.users.InsertOnSubmit(user);
     db.SubmitChanges();
 }