You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
633 B
24 lines
633 B
2 years ago
|
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 InventoryController : ApiController
|
||
|
{
|
||
|
InventoryDal DT = new InventoryDal();
|
||
|
[Route("api/InventoryReport/InventoryReports")]
|
||
|
[HttpPost]
|
||
|
public IHttpActionResult QueryInfo(dynamic para)
|
||
|
{
|
||
|
string locationname = para.locationname;
|
||
|
string name = para.name;
|
||
|
var res = DT.Inventory( locationname,name);
|
||
|
return Json(res);
|
||
|
}
|
||
|
}
|
||
|
}
|