修正项目结构

This commit is contained in:
admin
2021-01-15 09:26:17 +08:00
parent 62bd133757
commit a2fd7eca0b
44 changed files with 230 additions and 73 deletions

View File

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