コード例 #1
0
ファイル: TesterController.cs プロジェクト: Rizjiy/RMarketMVC
        /// <summary>
        /// Загрузка последних n свечек
        /// </summary>
        /// <param name="aliveId"></param>
        /// <param name="maxCount"></param>
        /// <returns></returns>
        public ActionResult GetDataJsonInit(int aliveId, int maxCount, string way = "right")
        {
            AliveResult aliveResult = strategyResultCollection.FirstOrDefault(t => t.AliveId == aliveId);

            AliveResultHelperUI helper = new AliveResultHelperUI(aliveResult);
            var res = helper.GetDataJsonInit(maxCount, way);

            return new JsonNetResult(res, JsonRequestBehavior.AllowGet, jsonSerializerSettings);
        }