You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
993 B
34 lines
993 B
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;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[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);
|
|
}
|
|
}
|