Exemplo n.º 1
0
        public async Task <ReportView> GetAllTenderReports(string tenderType)
        {
            var reportView = new ReportView();
            var tender     = await _repository.GetTende(tenderType);

            var tenderReportList = await _repository.GetAllTenderReports(tenderType);

            reportView.Reports      = _mapper.Map <List <ReportViewDTO> >(tenderReportList);
            reportView.TenderAmount = tender[0].Amount;
            return(reportView);
        }