33 lines
790 B
C#
33 lines
790 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Http;
|
|
|
|
namespace NX.ERP.WebAPi.Controllers.Store
|
|
{
|
|
|
|
public class MaterialStoreOutController:ApiController
|
|
{
|
|
|
|
[Route("api/MaterialOut/Add")]
|
|
[HttpPost]
|
|
|
|
private string AddVoucher([FromBody] Model.Request.MaterialStoreOut storeIn)
|
|
{
|
|
var dal = new NX.ERP.U8.Store.MaterialStoreOutDAL();
|
|
return dal.AddVocher(storeIn);
|
|
}
|
|
|
|
|
|
|
|
[Route("api/MaterialOut/Update")]
|
|
[HttpPost]
|
|
|
|
private bool UpdateVoucher([FromBody] Model.Request.MaterialStoreOut storeIn)
|
|
{
|
|
var dal = new NX.ERP.U8.Store.MaterialStoreOutDAL();
|
|
return dal.UpdateVocher(storeIn);
|
|
}
|
|
}
|
|
} |