示例#1
0
        public List <SanPhamModel> SPtuongtu(string maloai)
        {
            var kq = isp.GetCungLoai(maloai);

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

            return(kq);
        }
示例#2
0
        public List <SanPhamModel> SPtuongtu(string maloai)
        {
            var kq = isp.GetCungLoai(maloai);

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