Beispiel #1
0
        //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);
        }
Beispiel #2
0
        public int Save(PaymentEntity Product)
        {
            int rs = 0;

            if (Product != null)
            {
                dbContext.Update <PaymentEntity>(Product);
                rs = dbContext.SaveChanges();
            }

            return(rs);
        }