Example #1
0
        /// <summary>
        /// 批量删除区域Child
        /// </summary>
        /// <param name="sid">条目Sid</param>
        /// <returns></returns>
        public bool DeleteForm(string sid)
        {
            List <string> childSid = new List <string>()
            {
                sid
            };
            List <AreaEntity> childList = GetAreaChildList(sid);

            if (childList != null && childList.Count > 0)
            {
                childSid.AddRange(childList.Select(t => t.Sid).ToList());
            }
            int result = _service.DeleteFrom(childSid);

            return(result > 0 ? true : false);
        }