23 lines
718 B
C#
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);
|
|
}
|
|
} |