屏蔽某些API

This commit is contained in:
admin
2021-01-21 16:00:58 +08:00
parent f84e9f2e5e
commit 9b672067cb
24 changed files with 101 additions and 38 deletions

View File

@@ -10,6 +10,7 @@ namespace NX.ERP.WebAPi.Controllers.Sale
{
public class DispatchController : ApiController
{
[Obsolete]
[Route("api/Dispatch/List")]
// GET api/values
[HttpGet]
@@ -18,13 +19,14 @@ namespace NX.ERP.WebAPi.Controllers.Sale
var customerDAL = new DispatchListDAL();
return customerDAL.GetList();
}
[Obsolete]
[HttpGet]
public Model.Sale.DispatchList Model(int id)
{
var customerDAL = new DispatchListDAL();
return customerDAL.GetModel(id);
}
[Obsolete]
[Route("api/Dispatch/{Code}")]
[HttpGet]
public Model.Sale.DispatchList ModelByCode(string Code)
@@ -32,6 +34,7 @@ namespace NX.ERP.WebAPi.Controllers.Sale
var customerDAL = new DispatchListDAL();
return customerDAL.GetModel(Code);
}
[Obsolete]
[Route("api/Dispatch/List/{id}")]
[HttpGet]
public IEnumerable<Model.Sale.DispatchList> GetListByLastID(int id)