屏蔽某些API
This commit is contained in:
@@ -9,6 +9,7 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class ArrivalController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/Arrival/List")]
|
||||
// GET api/values
|
||||
[HttpGet]
|
||||
@@ -18,6 +19,17 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
return customerDAL.GetList();
|
||||
}
|
||||
|
||||
[Route("api/Arrival/Query")]
|
||||
// GET api/values
|
||||
[HttpPost]
|
||||
public IEnumerable<Model.Purchase.Arrival> List([FromBody] NX.ERP.Model.Request.Arrival arrival)
|
||||
{
|
||||
var customerDAL = new ArrivalDAL();
|
||||
return customerDAL.Query(arrival);
|
||||
}
|
||||
|
||||
|
||||
[Obsolete]
|
||||
[Route("api/Arrival/{Code}")]
|
||||
[HttpGet]
|
||||
public Model.Purchase.Arrival Model(string Code)
|
||||
@@ -25,7 +37,7 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
var customerDAL = new ArrivalDAL();
|
||||
return customerDAL.GetModel(Code);
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
[Route("api/Arrival/list/{id}")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Purchase.Arrival> GetListByLastID(int id)
|
||||
|
||||
Reference in New Issue
Block a user