mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 04:20:55 +00:00
25 lines
691 B
C#
25 lines
691 B
C#
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()));
|
|
}
|
|
}
|
|
}
|