public int PutDocument(Stream stream, DocumentRequisite documentRequisite, int?filesListId = null)
        {
            if (dataManager == null)
            {
                return(-1);
            }

            var path = GetPath(documentRequisite);

            if (!FTPService.CreateDirectory(Path.GetDirectoryName(path)))
            {
                return(-2);
            }
            if (!FTPService.Upload(stream, path))
            {
                return(-3);
            }

            return(dataManager.PutDocument(documentRequisite, filesListId));
        }