20 lines
610 B
C#
20 lines
610 B
C#
namespace LaaProductionWeb.API.Areas.Shipment.Controllers.Scanned
|
|
{
|
|
using LaaProductionWeb.API.Areas.Shipment.Models.Interfaces;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
public class ScannedController : ShipmentController
|
|
{
|
|
private readonly IScanModel scanModel;
|
|
|
|
public ScannedController(IScanModel scanModel)
|
|
=> this.scanModel = scanModel;
|
|
|
|
[HttpGet("Serial/{serialNo}")]
|
|
public async Task<ActionResult> GetAsync([FromRoute] string serialNo)
|
|
=> await this.scanModel.SerialScannedAsync(serialNo);
|
|
}
|
|
} |