修正代码
This commit is contained in:
20
NX.ERP.WebAPi/Controllers/Base/UnitController.cs
Normal file
20
NX.ERP.WebAPi/Controllers/Base/UnitController.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using NX.ERP.U8;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class UnitController: ApiController
|
||||
{
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Unit> List()
|
||||
{
|
||||
var supplierDAL = new UnitDAL();
|
||||
return supplierDAL.GetList();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user