public void Delete(T t) { try { dbContext.Entry <T>(t).State = Microsoft.EntityFrameworkCore.EntityState.Deleted; } catch (Exception ee) { } }
public void Update(Order order) { _dbContext.Entry(order).State = EntityState.Modified; }