using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Txgy.EWS.Server.IService; using Txgy.EWS.Server.Models; namespace Txgy.EWS.Server.Start.Controllers { [ApiController] public class ReportController : Controller { IReportService _reportService; public ReportController(IReportService reportService) { _reportService = reportService; } [HttpGet("all")] public JsonResult GetReportAll() { return Json(_reportService.Query(q => 1 == 1)); } } }