protected async void Page_LoadComplete(object sender, EventArgs e) { Arquivo diretorio; if (!IsPostBack) { diretorio = await _arquivoRepository.FindWhereParentIsNullAsync(); } else { diretorio = await _arquivoRepository.FindByIdAsync(PegarIdDiretorioCorrente()); } await ListarArquivosAsync(diretorio); }