Exemple #1
0
        private async Task<Reporter> CreateHeader(Reporter report, string logoPath)
        {
            string requestLabel = string.Empty;
            switch (this.calculateRequest.RequestType)
            {
                case RequestType.Plz:
                    requestLabel = "PLZ: " + calculateRequest.Plz;
                    break;
                case RequestType.Bundesland:
                    var bl = await bundeslandService.GetById(calculateRequest.Value);
                    requestLabel = "Bundesland: " +  bl.Name;
                    break;
                case RequestType.Deutschland:
                    requestLabel = "Deutschland";
                    break;
            }

            report.AddHeader(this.calculateRequest.Stichtag, requestLabel, logoPath);
            return report;
        }