30 lines
808 B
C#
30 lines
808 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 PuStoreInController : ApiController
|
|
{
|
|
[Obsolete]
|
|
[Route("api/PuStoreIn/Add")]
|
|
[HttpPost]
|
|
public object AddVoucher([FromBody] Model.Request.PuStoreIn storeIn)
|
|
{
|
|
var dal = new NX.ERP.U8.Store.PuStoreInDAL();
|
|
return new { Id = dal.AddVocher(storeIn) };
|
|
}
|
|
|
|
[Obsolete]
|
|
[Route("api/PuStoreIn/Update")]
|
|
[HttpPost]
|
|
public object UpdateVoucher([FromBody] Model.Request.PuStoreIn storeIn)
|
|
{
|
|
var dal = new NX.ERP.U8.Store.PuStoreInDAL();
|
|
return new { Id = dal.UpdateVocher(storeIn) };
|
|
}
|
|
}
|
|
} |