public bool changeMaxProductOnEachPage(int maxProductOnEachPage) { BangThamSo temp = db.BangThamSo.Where(x => x.TenThamSo == "SoPhimTrenMotTrang").FirstOrDefault(); temp.GiaTri = maxProductOnEachPage.ToString(); db.SaveChanges(); return(true); }
public int getMaxProductOnEachPage() { BangThamSo temp = db.BangThamSo.Where(x => x.TenThamSo == "SoPhimTrenMotTrang").FirstOrDefault(); return(Int32.Parse(temp.GiaTri)); }
public int getMaxIndexPage() { BangThamSo temp = db.BangThamSo.Where(x => x.TenThamSo == "GiaTriTrangLonNhatMoiLanPhanTrang").FirstOrDefault(); return(Int32.Parse(temp.GiaTri)); }