using CartriX.Api.Interfaces; using CartriX.Api.Mappers; 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.GetDatePerCountPrinted().Result; return Ok(result.Select(l => l.ToNoId())); } } }