28 lines
584 B
C#
28 lines
584 B
C#
using NX.ERP.U8.Base;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Http;
|
|
|
|
namespace NX.ERP.WebAPi.Controllers
|
|
{
|
|
public class PositionController : ApiController
|
|
{
|
|
[HttpGet]
|
|
public IEnumerable<Model.Bin> List()
|
|
{
|
|
var binDAL = new BinDAL();
|
|
return binDAL.GetList();
|
|
|
|
}
|
|
[HttpGet]
|
|
public IEnumerable<Model.Bin> GetList(string Code)
|
|
{
|
|
var binDAL = new BinDAL();
|
|
return binDAL.GetListByWhCode(Code);
|
|
}
|
|
|
|
|
|
}
|
|
} |