using Microsoft.AspNetCore.Mvc; using OI.Metrology.Shared.Models.Stateless; namespace OI.Metrology.Server.ApiControllers; [Route("api/v1/WaferCounter")] public class WaferCounterController : Controller, IWaferCounterController { private readonly IWaferCounterRepository _WaferCounterRepository; public WaferCounterController(IWaferCounterRepository waferCounterRepository) => _WaferCounterRepository = waferCounterRepository; [HttpGet("{waferSize}/last-quantity-and-slot-map")] public IActionResult GetLastQuantityAndSlotMap(string area, string waferSize) => Json(_WaferCounterRepository.GetLastQuantityAndSlotMap(area, waferSize)); [HttpGet("{waferSize}/last-quantity-and-slot-map-with-text")] public IActionResult GetLastQuantityAndSlotMapWithText(string area, string waferSize, string text) => Json(_WaferCounterRepository.GetLastQuantityAndSlotMapWithText(area, waferSize, text)); }