private static void UpdateFolder(Folder oldFolder, Folder newFolder) { oldFolder.ParentID = newFolder.ParentID; oldFolder.FolderTypeID = newFolder.FolderTypeID; oldFolder.SubscriptionGUID = newFolder.SubscriptionGUID; oldFolder.Name = newFolder.Name; oldFolder.NumberOfSubFolders = newFolder.NumberOfSubFolders; oldFolder.NumberOfObjects = newFolder.NumberOfObjects; oldFolder.DateCreated = newFolder.DateCreated; }
public ObservableCollection<Folder> GetFolders(Folder parentFolder) { return GetFolders(parentFolder.DoIfIsNotNull(f => f.ID)); }