Exemplo n.º 1
0
        public PartialViewResult GetSellerClass(int sellerId)
        {
            var    buyerInfo = GetUser();
            string msg;

            if (buyerInfo == null)
            {
                return(PartialView("NeedLogin"));
            }



            List <ProductClassInfo> classInfos = BuyerInfoBll.GetProductClassInfo(buyerInfo.BuyerId, sellerId, out msg);

            return(PartialView(classInfos));
        }
Exemplo n.º 2
0
 public SellersGoodsViewModel(int sellerId, int buyerId)
 {
     sellerInfo        = SellerInfoBll.GetModel(sellerId, out msg);
     buyerInfo         = BuyerInfoBll.GetModel(buyerId, out msg);
     productClassInfos = BuyerInfoBll.GetProductClassInfo(buyerInfo.BuyerId, sellerId, out msg);
 }