public Withdraw Add(Withdraw entity) { if (entity.Id > 0) return entity; context.Withdraw.AddObject(entity); try { context.SaveChanges(); } catch (OptimisticConcurrencyException e) { //An optimistic concurrency violation has occurred in the data source. throw new ConcurrencyException(e.Message); } return entity; }
public Withdraw Update(Withdraw entity) { return entity; }
public void Delete(Withdraw entity) { context.DeleteObject(entity); }