I am working with sitefinity 7.0.
I am working on creating and uploading document to library by api in sitefinity.
Suppose I have 2 document libraries say Group1,Group2 under the root
How can i upload documents to the library Group1,Group2 under the Default Library.
I am referring the code here .
//Set the parent document library.
DocumentLibrary documentLibrary = librariesManager.GetDocumentLibraries().Where(d => d.Id == parentDocumentLibraryId).SingleOrDefault();
document.Parent = documentLibrary;
But how can i found the Id of the document library Group1 under Default Library by its name?
because the librariesManager.GetDocumentLibraries() returns only libraries in root level.
What i need is the documentLibrary which has name Group1 under parent Default Library.
Any way to achieve this?