using NX.ERP.U8.Purchase; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; namespace NX.ERP.WebAPi.Controllers { public class PmcController : ApiController { [HttpPost] [Route("api/Pmc/Inventoryall")] public IEnumerable Inventoryall(NX.ERP.Model.Request.Inventoryall info) { var dal = new NX.ERP.U8.Pmc.PmcQuery(); return dal.GetPmcInventoryallRes(info); } [HttpPost] [Route("api/Pmc/Inventorymom")] public IEnumerable Inventorymom([FromBody] List invCodes) { var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery(); return PmcQuery.Inventorymom(invCodes); } [HttpPost] [Route("api/Pmc/Inventorymonth")] public IEnumerable Inventorymonth(NX.ERP.Model.Request.Inventoryall info) { var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery(); return PmcQuery.Inventorymonth(info); } [HttpPost] [Route("api/Pmc/Inventorysocode")] public IEnumerable Inventorysocode(NX.ERP.Model.Request.Inventoryall info) { var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery(); return PmcQuery.Inventorysocode(info); } } }