修正项目结构
This commit is contained in:
@@ -8,6 +8,7 @@ namespace NX.ERP.WebAPi.Controllers.MOM
|
||||
{
|
||||
public class MomOrderController : ApiController
|
||||
{
|
||||
[Route("api/MomOrder/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.MOM.MomOrder> List()
|
||||
{
|
||||
@@ -15,14 +16,21 @@ namespace NX.ERP.WebAPi.Controllers.MOM
|
||||
return customerDAL.GetList();
|
||||
|
||||
}
|
||||
|
||||
[Route("api/MomOrder/list/{id}")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.MOM.MomOrder> GetListByLastID(int Code)
|
||||
public IEnumerable<Model.MOM.MomOrder> GetListByLastID(int id)
|
||||
{
|
||||
var customerDAL = new NX.ERP.U8.Mom.MomOrderDAL();
|
||||
return customerDAL.GetListByLastID(Code);
|
||||
return customerDAL.GetListByLastID(id);
|
||||
}
|
||||
|
||||
[Route("api/MomOrder/{Code}")]
|
||||
[HttpGet]
|
||||
public Model.MOM.MomOrder GetModel(string Code)
|
||||
{
|
||||
var customerDAL = new NX.ERP.U8.Mom.MomOrderDAL();
|
||||
return customerDAL.GetModel(Code);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user