Esempio n. 1
0
        // GET: AuctionItem
        public ActionResult Failure()
        {
            System.Data.DataSet ds = Maticsoft.DBUtility.DbHelperMySQL.Query("select * from item where state_id=3;");

            if (ds == null || ds.Tables.Count == 0)
            {
                return(Content("null"));
            }

            BLL.item          item     = new BLL.item();
            List <Model.item> itemList = item.DataTableToList(ds.Tables[0]);

            if (itemList.Count == 0)
            {
                return(Content("null"));
            }

            return(Json(itemList, JsonRequestBehavior.AllowGet));
        }