public void Edit(ExchangeHouse ExchangeHouse) { this._dBContext.Attach(ExchangeHouse); this._dBContext.Entry(ExchangeHouse).State = EntityState.Modified; }
public void Delete(ExchangeHouse ExchangeHouse) { //var ExchangeHouse = _dBContext.ExchangeHouse.SingleOrDefaultAsync(m => m.Id == id); this._dBContext.Attach(ExchangeHouse); this._dBContext.Entry(ExchangeHouse).State = EntityState.Modified; }
public void Add(ExchangeHouse ExchangeHouse) { this._dBContext.Add(ExchangeHouse); }