Beispiel #1
0
        public List <SanPhamModel> SanphamtheoLoaiCon2(int pageIndex, int pageSize, string link, out long total)
        {
            var kq = isp.GetByLoai2(pageIndex, pageSize, link, out total);

            {
                foreach (var item in kq)
                {
                    LayThongTinSP(item);
                }
            }
            return(kq);
        }
Beispiel #2
0
        public List <SanPhamModel> SanphamtheoLoaiCon2(int pageIndex, int pageSize, string link, out long total)
        {
            var kq = isp.GetByLoai2(pageIndex, pageSize, link, out total);

            {
                foreach (var item in kq)
                {
                    item.dsgiaban   = isp.GetGiaBans(item.MaSanPham);
                    item.giahientai = isp.Getgiahientai(item.MaSanPham);
                    item.kho        = isp.Getkhobysp(item.MaSanPham);
                    item.danhmuc    = isp.getloaibySanPham(item.MaSanPham);
                    item.loaicon1   = isp.getloai1bySanPham(item.MaSanPham);
                    item.loaicon2   = isp.getloai2bySanPham(item.MaSanPham);
                }
            }
            return(kq);
        }