32 lines
710 B
C#
32 lines
710 B
C#
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 UnitController : ApiController
|
|
{
|
|
|
|
[Route("api/Unit/List")]
|
|
[HttpGet]
|
|
public IEnumerable<Model.Unit> List(long Pubufts = 0)
|
|
{
|
|
var supplierDAL = new UnitDAL();
|
|
return supplierDAL.GetList(Pubufts);
|
|
|
|
}
|
|
|
|
|
|
[Route("api/Unit/Query")]
|
|
[HttpPost]
|
|
public IEnumerable<Model.Unit> Query(NX.ERP.Model.Request.Unit Param)
|
|
{
|
|
var supplierDAL = new UnitDAL();
|
|
return supplierDAL.GetList(Param);
|
|
|
|
}
|
|
}
|
|
} |