31 lines
853 B
C#
31 lines
853 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 SaleStoreOutController : ApiController
|
|
{
|
|
[Obsolete]
|
|
[Route("api/SaleStoreOut/Add")]
|
|
[HttpPost]
|
|
private object AddVoucher([FromBody] Model.Request.SaleStoreOut storeIn)
|
|
{
|
|
var dal = new NX.ERP.U8.Store.SaleOutDAL();
|
|
return new { Id = dal.AddVoucher(storeIn) };
|
|
}
|
|
|
|
|
|
[Route("api/SaleStoreOut/Update")]
|
|
[HttpPost]
|
|
private bool UpdateVoucher([FromBody] Model.Request.SaleStoreOut storeIn)
|
|
{
|
|
var dal = new NX.ERP.U8.Store.SaleOutDAL();
|
|
// return new { Id = dal.UpdateVoucher(storeIn) };
|
|
return dal.UpdateVoucher(storeIn);
|
|
}
|
|
}
|
|
} |