public void Update(House house) { _db.Update(house); _db.SaveChanges(); }
public void Detach(House trackedhouse) { _db.Entry(trackedhouse).State = EntityState.Detached; }
public void Add(House house) { _db.Add(house); _db.SaveChanges(); }