Files

32 lines
710 B
C#
Raw Permalink Normal View History

2021-01-05 11:11:28 +08:00
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
{
2021-01-20 16:31:45 +08:00
public class UnitController : ApiController
2021-01-05 11:11:28 +08:00
{
2021-06-04 11:22:42 +08:00
2021-01-20 16:31:45 +08:00
[Route("api/Unit/List")]
2021-01-05 11:11:28 +08:00
[HttpGet]
2021-06-04 11:22:42 +08:00
public IEnumerable<Model.Unit> List(long Pubufts = 0)
2021-01-05 11:11:28 +08:00
{
var supplierDAL = new UnitDAL();
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/Unit/Query")]
[HttpPost]
public IEnumerable<Model.Unit> Query(NX.ERP.Model.Request.Unit Param)
{
var supplierDAL = new UnitDAL();
return supplierDAL.GetList(Param);
}
2021-01-05 11:11:28 +08:00
}
}