using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using Warehouse.DAL.Report; namespace Warehouse.WebApi { public class InventoryJYController : ApiController { InventoryJYDal DT = new InventoryJYDal(); [Route("api/InventoryJYReport/InventoryJYReports")] [HttpPost] public IHttpActionResult QueryInfo(dynamic para) { string locationname = para.locationname; string name = para.name; var res = DT.InventoryJY( locationname,name); return Json(res); } //InventoryJYDal DT = new InventoryJYDal(); [Route("api/InventoryJYReport/InventoryDetailed")] [HttpPost] public IHttpActionResult Detailed(dynamic para) { string locationname = para.locationname; string name = para.name; var res = DT.InventoryDetailedJY(locationname, name); return Json(res); } } }