Example #1
0
        public bool changeMaxProductOnEachPage(int maxProductOnEachPage)
        {
            BangThamSo temp = db.BangThamSo.Where(x => x.TenThamSo == "SoPhimTrenMotTrang").FirstOrDefault();

            temp.GiaTri = maxProductOnEachPage.ToString();
            db.SaveChanges();
            return(true);
        }
Example #2
0
        public int getMaxProductOnEachPage()
        {
            BangThamSo temp = db.BangThamSo.Where(x => x.TenThamSo == "SoPhimTrenMotTrang").FirstOrDefault();

            return(Int32.Parse(temp.GiaTri));
        }
Example #3
0
        public int getMaxIndexPage()
        {
            BangThamSo temp = db.BangThamSo.Where(x => x.TenThamSo == "GiaTriTrangLonNhatMoiLanPhanTrang").FirstOrDefault();

            return(Int32.Parse(temp.GiaTri));
        }