예제 #1
0
        /// <summary>
        /// 获取渠道列表
        /// </summary>
        /// <returns></returns>
        public JsonResult drpChannelList()
        {
            DaChannel       dal      = new DaChannel();
            IList <Channel> channels = dal.getList();

            var result = new CustomJsonResult();

            result.Data = channels;
            return(result);
        }
예제 #2
0
        /* ============ 操作 ============ */

        #region 获取渠道类别列表
        /// <summary>
        /// 获取渠道类别列表
        /// </summary>
        /// <returns></returns>
        public JsonResult Channel_getList()
        {
            DaChannel       dal      = new DaChannel();
            IList <Channel> channels = dal.getList();

            var result = new CustomJsonResult();

            result.Data = new { total = channels.Count, rows = channels };
            return(result);
        }