public void ChangeDirectory(int id, DirectoryStructure directoryStructure)
        {
            if (GetDirectoryStructure(id) == null)
            {
                return;
            }

            directories[id] = directoryStructure;
            IsChenged       = true;
        }
        public void CreateDirectory(int id, int parent, string name)
        {
            var directoryStructure = new DirectoryStructure
            {
                Id     = id,
                Parent = parent,
                Name   = name
            };

            CreateDirectory(directoryStructure);
        }
 public void CreateDirectory(DirectoryStructure directoryStructure)
 {
     directories.Add(directoryStructure.Id, directoryStructure);
     NextDirectoryId++;
     IsChenged = true;
 }