public void Put(int id, [FromBody] Userprofile userprofile)
 {
     userprofile.UserprofileId    = id;
     _db.Entry(userprofile).State = EntityState.Modified;
     _db.SaveChanges();
 }
Пример #2
0
 public void Put(int id, [FromBody] Circle circle)
 {
     circle.CircleId         = id;
     _db.Entry(circle).State = EntityState.Modified;
     _db.SaveChanges();
 }