public List <SanPhamModel> SPtuongtu(string maloai) { var kq = isp.GetCungLoai(maloai); { foreach (var item in kq) { LayThongTinSP(item); } } return(kq); }
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); }