Допилил добавление принтера, сделал опрос принтеров сколько что они напечатали

This commit is contained in:
Hukuta committed 2026-05-10 21:03:55 +09:00
1 parent b492435289
commit 4fbc39ca77
62 files changed
+5298 -105

No files matched your search

@@ -0,0 +1,25 @@
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()));
}
}
}