public FolderContentWrapper SaveThirdParty( String login, String password, String token, bool isCorporate, String customerTitle, String providerid) { var thirdPartyParams = new ThirdPartyParams { AuthData = new AuthData(login, password, token), Corporate = isCorporate, CustomerTitle = customerTitle, ProviderId = providerid }; var folder = _fileStorageService.SaveThirdParty(thirdPartyParams); return(ToFolderContentWrapper(folder.ID)); }
public FolderWrapper <T> SaveThirdParty( string url, string login, string password, string token, bool isCorporate, string customerTitle, string providerKey, string providerId) { var thirdPartyParams = new ThirdPartyParams { AuthData = new AuthData(url, login, password, token), Corporate = isCorporate, CustomerTitle = customerTitle, ProviderId = providerId, ProviderKey = providerKey, }; var folder = FileStorageService.SaveThirdParty(thirdPartyParams); return(FolderWrapperHelper.Get(folder)); }