Files

33 lines
749 B
C#
Raw Permalink Normal View History

2021-01-05 11:11:28 +08:00
using NX.ERP.Model;
using NX.ERP.U8;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
namespace NX.ERP.WebAPi.Controllers
{
public class SupplierController : ApiController
{
2021-01-20 16:31:45 +08:00
[Route("api/Supplier/List")]
2021-01-05 11:11:28 +08:00
[HttpGet]
2021-06-04 11:22:42 +08:00
public IEnumerable<Supplier> List(long Pubufts = 0)
2021-01-05 11:11:28 +08:00
{
var supplierDAL = new SupplierDAL();
2021-06-04 11:22:42 +08:00
return supplierDAL.GetList(Pubufts);
2021-01-05 11:11:28 +08:00
}
2021-01-20 16:31:45 +08:00
[Route("api/Supplier/Query")]
[HttpPost]
public IEnumerable<Model.Supplier> Query(NX.ERP.Model.Request.Supplier Param)
{
var customerDAL = new SupplierDAL();
return customerDAL.GetList(Param);
}
2021-01-05 11:11:28 +08:00
}
2021-01-20 16:31:45 +08:00
2021-01-05 11:11:28 +08:00
}