public void Edit(Model.tbl_GroupUser obj) { _entities.Entry(obj).State = EntityState.Detached; _entities.Entry(obj).State = EntityState.Modified; _entities.SaveChanges(); }
public void Add(Model.tbl_GroupUser obj) { _entities.tbl_GroupUser.Add(obj); _entities.SaveChanges(); }