laatzen/LaaProductionWeb/LaaProductionWeb.API/Areas/Serach/Controllers/WildcardController.cs
2023-05-08 14:14:33 +02:00

23 lines
718 B
C#

namespace LaaProductionWeb.API.Areas.Serach.Controllers
{
using LaaProductionWeb.API.Areas.Serach.Models;
using LaaProductionWeb.API.Areas.Serach.Models.Interfaces;
using Microsoft.AspNetCore.Mvc;
public class WildcardController : SearchController
{
private readonly IWildcardModel wildcardModel;
public WildcardController(IWildcardModel wildcardModel)
=> this.wildcardModel = wildcardModel;
[HttpOptions]
public ActionResult Options()
=> this.wildcardModel.Options();
[HttpGet]
public ActionResult Get([FromQuery] WildcardInputModel model)
=> this.wildcardModel.Find(this.ModelState, model);
}
}