using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Mvc;
|
using WIDESEA_DTO;
|
using WIDESEA_IStoragIntegrationServices;
|
|
namespace WIDESEA_WMSServer.Controllers
|
{
|
[Route("api/[controller]")]
|
[ApiController]
|
public class CellStateController : Controller
|
{
|
private readonly ICellStateService _cellStateService;
|
|
public CellStateController(ICellStateService cellStateService) { _cellStateService = cellStateService; }
|
|
// POST: api/CellState/GetCellState
|
[HttpPost("GetCellState")]
|
public Task<dynamic> GetCellStateAsync([FromBody] CellStateDto input)
|
{
|
return _cellStateService.GetCellStateAsync(input);
|
}
|
|
// POST: api/CellState/GetTrayCellState
|
[HttpPost("GetTrayCellState")]
|
public Task<dynamic> GetTrayCellStateAsync([FromBody] TrayCellsStatusDto input)
|
{
|
return _cellStateService.GetTrayCellStatusAsync(input);
|
}
|
}
|
}
|