private static Node_Tree CreateChildTree(ChildTree child) { Node_Tree nodeChild = CrateNodeTree(child.Title, child.Id.ToString(), child.Tag); foreach (var item in child.Children) { nodeChild.nodes = nodeChild.nodes ?? new Collection <Node_Tree>(); nodeChild.nodes.Add(CreateGrandChildTree(item)); } return(nodeChild); }
public ChildTree Add(ChildTree entity) { try { var childTree = _unitOfWork.Repository <ChildTree>().Add(entity); _unitOfWork.CommitSync(); return(childTree); } catch (CustomException exc) { throw exc; } catch (Exception ex) { throw CustomException.Create <ChildTreeAppService>("Unexpected error fetching Add", nameof(this.Add), ex); } }
public Task <ChildTree> UpdateAsync(ChildTree updated) { throw new NotImplementedException(); }
public ChildTree Update(ChildTree updated) { throw new NotImplementedException(); }
public Task <ChildTree> AddAsync(ChildTree entity) { throw new NotImplementedException(); }