mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Допилил добавление принтера, сделал опрос принтеров сколько что они напечатали
This commit is contained in:
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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user