You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
703 B
C#

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 BillingController : Controller
{
IBillingService _billingService;
public BillingController(IBillingService billingService)
{
_billingService = billingService;
}
[HttpGet("all")]
public JsonResult GetAllBillings()
{
return Json(_billingService.Query<BillingInfo>(q => 1 == 1).ToList());
}
}
}