You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
688 B
C#
28 lines
688 B
C#
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Txgy.EWS.Server.IService;
|
|
|
|
namespace Txgy.EWS.Server.Start.Controllers
|
|
{
|
|
[ApiController]
|
|
public class RecordController : Controller
|
|
{
|
|
IRecordService _recordService;
|
|
public RecordController(IRecordService recordService)
|
|
{
|
|
_recordService = recordService;
|
|
}
|
|
|
|
|
|
[HttpGet("license/{license}")]
|
|
public JsonResult GetRecordByLicense([FromRoute] string license)
|
|
{
|
|
return Json(_recordService.GetRecordInfo(license));
|
|
}
|
|
}
|
|
}
|