public ActionResult BuyRequest(int p = 1, string key = "")
        {
            UserAuth();
            var psize    = 10;
            var buy_list = AssetBuyInfoVM.GetAssetBuyInfo(key);

            ViewBag.total     = buy_list.Count;
            ViewBag.data      = buy_list.Skip((p - 1) * psize).Take(psize);
            ViewBag.PageNo    = p;
            ViewBag.TotalPage = Math.Ceiling(buy_list.Count / psize + 0.0);
            ViewBag.keywords  = key;

            return(View());
        }
        public JsonResult GetBuyInfo()
        {
            var id       = Request.Form["id"];
            var buy_info = AssetBuyInfoVM.GetAssetBuyInfo("", id);
            var res      = new JsonResult();

            if (buy_info.Count > 0)
            {
                res.Data = new { success = true, data = buy_info[0] };
            }
            else
            {
                res.Data = new { success = false };
            }

            return(res);
        }