using CartriX.Api.Interfaces; using CartriX.Shared.Mappers; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace CartriX.Api.Controllers { [Route("api/[controller]")] [ApiController] public class ReportController : ControllerBase { private readonly IReportService _reportService; public ReportController(IReportService reportService) { _reportService = reportService; } [HttpGet("GetReportToDatePerCountPrinted")] public IActionResult GetReportToDatePerCountPrinted() { var result = _reportService.GetReportToDatePerCountPrinted().Result; return Ok(result.Select(l => l.OnlyDataPerPrinted())); } } }