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