public Task <IServiceResult <Error, string> > GetTxtReportAsync(int year, int month) { return(RunAsync(async() => { var ratesResult = await _rateService.GetRatesAsync(year, month, _currencyCodes); if (ratesResult.IsFaulted) { return ratesResult.TransformToFaultedResult <string>(); } var builder = new ReportBuilder(year, month, ratesResult.Data); var report = builder.Build(); return ServiceResult <Error> .Success(report.ToString()); })); }