//phương thức cập nhật product by id public int Save(Product2 Product) { int rs = 0; if (Product != null) { dbContext.Update <Product2>(Product); rs = dbContext.SaveChanges(); } return(rs); }
public int Save(PaymentEntity Product) { int rs = 0; if (Product != null) { dbContext.Update <PaymentEntity>(Product); rs = dbContext.SaveChanges(); } return(rs); }