public List <SanPhamModel> spbyloai1(int pageIndex, int pageSize, string link, out long total)
        {
            var kq = isp.Getspbyloai1(pageIndex, pageSize, out total, link);

            {
                foreach (var item in kq)
                {
                    LayThongTinSP(item);
                }
            }

            return(kq);
        }
Exemple #2
0
        public List <SanPhamModel> spbyloai1(int pageIndex, int pageSize, string link, out long total)
        {
            var kq = isp.Getspbyloai1(pageIndex, pageSize, out total, link);

            {
                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);
        }