Esempio n. 1
0
        /// <summary>
        /// 删除数据
        /// </summary>
        public async Task Delete(string id)
        {
            try
            {
                await _IDataTypeRepository.DeleteAsync(id);

                _IDataTypeRepository.Delete(q => q.ParentID == id);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }