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
852 B
34 lines
852 B
using DealerSelection.Api.Interface;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Swashbuckle.AspNetCore.Annotations;
|
|
|
|
namespace DealerSelection.WebApi.Controllers;
|
|
|
|
[ApiController]
|
|
[Route("DealerSelection")]
|
|
public class DealerSelectionController : ControllerBase
|
|
{
|
|
|
|
private IAssignDealerApi Api { get; }
|
|
public DealerSelectionController(IAssignDealerApi api)
|
|
{
|
|
Api = api;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[Authorize]
|
|
[HttpPost]
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
[SwaggerOperation(Tags = new[] { "DealerSelection" })]
|
|
[Route("DealerSelection")]
|
|
public async Task AssignDealer(int buId,int recordId)
|
|
{
|
|
// return 1;
|
|
|
|
await Api.GetCustomerDataForJob( buId, recordId);
|
|
}
|
|
}
|