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.
31 lines
757 B
31 lines
757 B
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 BeforeCapacityController : ApiController
|
|
{
|
|
BeforeCapacityDal DT = new BeforeCapacityDal();
|
|
|
|
[Route("api/BeforeCapacity/BeforeCapacity")]
|
|
[HttpPost]
|
|
public IHttpActionResult Repair(dynamic para)
|
|
{
|
|
var res = DT.BeforeCapacity();
|
|
return Json(res);
|
|
}
|
|
|
|
[Route("api/BeforeCapacity/AfterCapacity")]
|
|
[HttpPost]
|
|
public IHttpActionResult After(dynamic para)
|
|
{
|
|
var res = DT.AfterCapacity();
|
|
return Json(res);
|
|
}
|
|
}
|
|
}
|
|
|