Пример #1
0
 public ReportsController(
     IBalanceIndicatorsReportService balanceIndicatorsReportService,
     IBalanceReportService balanceReportService,
     ISummaryReportService summaryReportService,
     IPositionReportService positionReportService)
 {
     _balanceIndicatorsReportService = balanceIndicatorsReportService;
     _balanceReportService           = balanceReportService;
     _summaryReportService           = summaryReportService;
     _positionReportService          = positionReportService;
 }
Пример #2
0
        public async Task <IActionResult> Get([FromServices] IBalanceReportService reportService)
        {
            try
            {
                var balance = await reportService.GetRetailerBalance(User.Identity.Name);

                return(Ok(balance));
            }
            catch (HttpRequestException ex)
            {
                return(BadRequest(ex.Message));
            }
        }
Пример #3
0
 public ReportsController(IBalanceReportService balanceReportService)
 {
     _balanceReportService = balanceReportService;
 }