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