产品入库

This commit is contained in:
gongxh
2021-03-15 13:13:29 +08:00
parent 65c4e82437
commit 13ccee99e5
4 changed files with 65 additions and 11 deletions

View File

@@ -6,8 +6,8 @@ using System.Web.Http;
namespace NX.ERP.WebAPi.Controllers.Store
{
public class ProductStoreInController: ApiController
public class ProductStoreInController : ApiController
{
[Obsolete]
[Route("api/ProductStoreIn/Add")]
@@ -17,5 +17,15 @@ namespace NX.ERP.WebAPi.Controllers.Store
var dal = new NX.ERP.U8.Store.ProductInDAL();
return new { Id = dal.AddVoucher(storeIn) };
}
[Obsolete]
[Route("api/ProductStoreIn/Update")]
[HttpPost]
public bool UpdateVoucher([FromBody] Model.Request.ProductStoreIn storeIn)
{
var dal = new NX.ERP.U8.Store.ProductInDAL();
return dal.UpdateVoucher(storeIn);
}
}
}