Beispiel #1
0
        /// <summary>
        /// 查看当前用户的竞标成功的物品
        /// state_id=2
        /// </summary>
        /// <returns></returns>
        public ActionResult Success(int userid = 0)
        {
            if (userid <= 0)
            {
                return(Content("-1"));
            }
            BLL.item          bi     = new BLL.item();
            List <Model.item> miList = bi.GetModelList("state_id=2 and winer_id=" + userid);

            if (miList != null && miList.Count > 0)
            {
                return(Json(miList, JsonRequestBehavior.AllowGet));
            }
            return(Content("-2"));
        }
Beispiel #2
0
        public ActionResult ViewAuctionItemByKindId(int kid = 0)
        {
            if (kid <= 0)
            {
                return(Content("-1"));
            }

            BLL.item          bi     = new BLL.item();
            List <Model.item> miList = bi.GetModelList("state_id=1 and kind_id=" + kid);    // state_id=1

            if (miList != null && miList.Count > 0)
            {
                return(Json(miList, JsonRequestBehavior.AllowGet));
            }
            return(Content("-2"));
        }