33 lines
749 B
C#
33 lines
749 B
C#
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
|
|
{
|
|
[Route("api/Supplier/List")]
|
|
[HttpGet]
|
|
public IEnumerable<Supplier> List(long Pubufts = 0)
|
|
{
|
|
var supplierDAL = new SupplierDAL();
|
|
return supplierDAL.GetList(Pubufts);
|
|
|
|
}
|
|
|
|
[Route("api/Supplier/Query")]
|
|
[HttpPost]
|
|
public IEnumerable<Model.Supplier> Query(NX.ERP.Model.Request.Supplier Param)
|
|
{
|
|
var customerDAL = new SupplierDAL();
|
|
return customerDAL.GetList(Param);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
} |