in all in one

This commit is contained in:
Kham
2026-04-22 08:48:04 +10:00
parent a994d72640
commit 12504e61f4
215 changed files with 21683 additions and 12 deletions
+37
View File
@@ -0,0 +1,37 @@
using Microsoft.AspNetCore.Mvc;
using CarParkValidationAPI.Authorization;
using CarParkValidationAPI.Entities;
using CarParkValidationAPI.Models;
using CarParkValidationAPI.Interface;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Controllers
{
// [Authorize]
[ApiController]
[Route("api/v1/[controller]")]
public class LookupCodeController : ControllerBase
{
private readonly ILookupCode _lookupCodeService;
public LookupCodeController(ILookupCode lookupCode)
{
_lookupCodeService = lookupCode;
}
[HttpGet("[action]")]
public async Task<IActionResult> ConcessionTypes(bool onlyActive=true)
{
var retval = await _lookupCodeService.LoadConcessionTypeAsync(onlyActive);
return Ok(retval);
}
[HttpGet("[action]")]
public async Task<IActionResult> ValidationPoints(bool onlyActive= true)
{
var retval = await _lookupCodeService.LoadValidationPointAsync(onlyActive);
return Ok(retval);
}
}
}