Beispiel #1
0
        /// <summary>
        /// 获取客户标签
        /// </summary>
        /// <param name="id">标签id</param>
        /// <returns></returns>
        public CustomerLabel GetCustomerLabel(string id)
        {
            CustomerLabel label           = null;
            DataEntity    labelDataEntity = _customerProvider.GetCustomerLabel(id);

            if (labelDataEntity != null)
            {
                label = new CustomerLabel()
                {
                    ID             = labelDataEntity["ID"].Value.ToString(),
                    Name           = labelDataEntity["Name"].Value.ToString(),
                    ServiceSpaceID = labelDataEntity["ServiceSpaceId"].Value.ToString()
                };
            }
            return(label);
        }