/// <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); }
/* ============ 操作 ============ */ #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); }