Ejemplo n.º 1
0
 public ReportsController(
     IBalanceIndicatorsReportService balanceIndicatorsReportService,
     IBalanceReportService balanceReportService,
     ISummaryReportService summaryReportService,
     IPositionReportService positionReportService)
 {
     _balanceIndicatorsReportService = balanceIndicatorsReportService;
     _balanceReportService           = balanceReportService;
     _summaryReportService           = summaryReportService;
     _positionReportService          = positionReportService;
 }
Ejemplo n.º 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));
            }
        }
Ejemplo n.º 3
0
 public ReportsController(IBalanceReportService balanceReportService)
 {
     _balanceReportService = balanceReportService;
 }