Exemple #1
0
        public async Task <TData> DeleteForm(string ids)
        {
            TData obj = new TData();

            foreach (long id in TextHelper.SplitToArray <long>(ids, ','))
            {
                if (branchService.ExistChildrenBranch(id))
                {
                    obj.Message = "该分支下面有子分支!";
                    return(obj);
                }
            }
            await branchService.DeleteForm(ids);

            obj.Tag = 1;
            return(obj);
        }