Пример #1
0
        public ActionResult Test()
        {

            var json = new { flag = 0, info = string.Format("MID:{0},Name:{1}", Client.MID, Client.Name), level = 1, sessionid = Session.SessionID };

            return Json(json, JsonRequestBehavior.AllowGet);
        }
Пример #2
0
        public JsonResult OrdersData(int ID, int Refresh = 0)
        {
            if (Refresh == 1)
            {
                var p = new Order();
                p.MID = Client.MID;
                p.ID = ID;
                DAL.Update.RefreshOrder(p);
            }
            var Order = DAL.Get.Order(Client.MID, ID);
            var Balance = DAL.Get.Balance(Client.MID);

            var JSON = new { Order = Order, Balance = Balance };

            return Json(JSON);
        }