public void Put(int id, [FromBody] Userprofile userprofile) { userprofile.UserprofileId = id; _db.Entry(userprofile).State = EntityState.Modified; _db.SaveChanges(); }
public void Put(int id, [FromBody] Circle circle) { circle.CircleId = id; _db.Entry(circle).State = EntityState.Modified; _db.SaveChanges(); }