屏蔽某些API
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user