public async Task CreateFolderOnRegister(string ownerId) { var endpath = Path.Combine(_pProvider.ContentPath(), ownerId); if (GetDocumentByIdAsync(ownerId).Result == null) { DocumentEntity document = new DocumentEntity { DocumentId = ownerId, Name = ownerId, IsFile = false, Path = endpath, Length = 0, ParentId = string.Empty, OwnerId = ownerId }; await _documentRepo.CreateDocumentAsync(document); // await _userDocumentRepo.AddUserDocumentAsync(ownerId, ownerId); } _pProvider.CreateFolderOnRegister(ownerId); }