Exemplo n.º 1
0
        public ActionResult Index()
        {
            string xmlICOInfo = render.GenerateXmlFromObject(null, new
            {
                pageNumber    = 0,
                pageSize      = int.MaxValue,
                sortDataField = "ID",
                sortOrder     = "asc"
            }, "52", "Frontend_List");
            var     tblICOInfo = db.GetContextData(xmlICOInfo);
            ICOInfo icoInfo    = render.ResponseObject <ICOInfo>(tblICOInfo.Tables[0]);

            return(View(icoInfo));
        }
Exemplo n.º 2
0
        public JsonResult Statistics()
        {
            CCoreDao     db     = new CCoreDao();
            GenerateData Render = new GenerateData();
            //var userID = 0;
            string xmlGetUser = Render.GenerateXmlFromObject <object>(null, new
            {
                Start     = 0,
                RowspPage = 0,
                TickerID  = 0,
                Side      = 0
            }, "61", "", 13);
            var ds   = db.GetContextData(xmlGetUser);
            var data = Render.ResponseMultiObject <Statistics>(ds.Tables[0]).ToList();

            return(Json(data));
        }