using NX.ERP.Model; 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 SupplierController : ApiController { [HttpGet] public IEnumerable List() { var supplierDAL = new SupplierDAL(); return supplierDAL.GetList(); } } }