Beispiel #1
0
 public async Task UpdateAsync(Post post)
 {
     db.Entry(post).State = EntityState.Modified;
     await db.SaveChangesAsync();
 }
 public void Update(PetProfile pet)
 {
     db.Entry(pet).State = EntityState.Modified;
 }
 public void Update(User user)
 {
     db.Entry(user).State = EntityState.Modified;
 }