Get text from OI

This commit is contained in:
2024-08-28 15:58:20 -07:00
parent 1ad6246b8d
commit b824c4ba36
6 changed files with 15 additions and 14 deletions

View File

@ -14,13 +14,13 @@ public class WaferCounterController : Controller, IWaferCounterController<IActio
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[HttpGet("{waferSize}/last-quantity-and-slot-map")]
public IActionResult GetLastQuantityAndSlotMap(string area, string waferSize)
public IActionResult GetLastQuantityAndSlotMap(string area, string waferSize, string text)
{
Shared.DataModels.WaferCounter? waferCounter = _WaferCounterRepository.GetLastQuantityAndSlotMap(area, waferSize);
Shared.DataModels.WaferCounter? waferCounter = _WaferCounterRepository.GetLastQuantityAndSlotMap(area, waferSize, text);
if (waferCounter is null)
return this.BadRequest();
return BadRequest();
else if (!string.IsNullOrEmpty(waferCounter.Message))
return this.BadRequest(waferCounter.Message);
return BadRequest(waferCounter.Message);
else
return Json(waferCounter);
}