コード例 #1
0
        /// <summary>
        /// 显示颜色
        /// </summary>
        /// <returns></returns>
        public CommColorShowResponse ColorShow(CommColorShowRequest request)
        {
            CommColorShowResponse response = new CommColorShowResponse();
            List <CommodityColor> list     = new List <CommodityColor>();

            list = dal.ColorShow();
            if (list.Count > 0)
            {
                response.ColorInfo = list;
            }
            return(response);
        }
コード例 #2
0
        /// <summary>
        /// 绑定颜色
        /// </summary>
        /// <returns></returns>
        public JsonResult CommodityBindColor(CommColorShowRequest request)
        {
            var res = bll.ColorShow(request);

            return(Json(res));
        }
コード例 #3
0
 /// <summary>
 /// 显示颜色
 /// </summary>
 /// <returns></returns>
 public CommColorShowResponse ColorShow(CommColorShowRequest request)
 {
     return(ApiRequestHelper.Post <CommColorShowRequest, CommColorShowResponse>(request));
 }
コード例 #4
0
 public CommColorShowResponse ShowColor(CommColorShowRequest request)
 {
     return(CommodityBll.Instance.ColorShow(request));
 }