using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEAWCS_Core.BaseController; using WIDESEAWCS_DTO.Stock; using WIDESEAWCS_IBasicRepository; using WIDESEAWCS_IStockRepository; using WIDESEAWCS_IStockService; using WIDESEAWCS_Model.Models; namespace WIDESEAWCS_Server.Controllers.Stock { [Route("api/StockInfo")] [ApiController] public class StockInfoController : ApiBaseController { public StockInfoController(IStockInfoService service) : base(service) { } [HttpPost, Route("GetAllStockViews"), AllowAnonymous] public List GetAllStockViews() { return Service.Repository.GetAllStockViews(); } //[HttpPost, Route("GetStockSelectViews"), AllowAnonymous] //public List GetStockSelectViews(string materielCode) //{ // return Service.GetStockSelectViews(materielCode); //} [HttpPost, Route("GetPalletStockInfo"), AllowAnonymous] public Dt_StockInfo GetPalletStockInfo(string roadwayNo) { return Service.Repository.GetPalletStockInfo(roadwayNo); } } }