using DealerSelection.Api.Interface; using DealerSelection.WebApi.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Swashbuckle.AspNetCore.Annotations; namespace DealerSelection.WebApi.Controllers; [ApiController] [Route("YellowAI")] public class YellowController : ControllerBase { private IYellowAIApi Api { get; } public YellowController(IYellowAIApi api) { Api = api; } /// /// /// /// [Authorize] [HttpGet] [ProducesResponseType(StatusCodes.Status200OK, Type = typeof(string))] [SwaggerOperation(Tags = new[] { "YellowAI" })] [Route("UpdateSelectedDealer")] public async Task UpdateSelectedDealer(CustomerDealerInfoRequest customerDealerInfoRequest) { Api.Models.CustomerDealerInfoRequest request = MapperConfig.MapCustomerDealerInfoRequest(customerDealerInfoRequest); await Api.UpdateSelectedDealer(request); } }