using DealerSelection.Api.Interface; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Swashbuckle.AspNetCore.Annotations; using System.ComponentModel.DataAnnotations; namespace DealerSelection.WebApi.Controllers; [ApiController] [Route("BatchJob")] public class BatchJobController : ControllerBase { private IBatchJobApi Api { get; } public BatchJobController(IBatchJobApi api) { Api = api; } /// /// /// /// // [Authorize] [HttpGet] [ProducesResponseType(StatusCodes.Status200OK)] [SwaggerOperation(Tags = new[] { "Process24HrOldRecords" })] [Route("BatchJob")] public async Task Process24HrOldRecords() { await Api.Process24HrOldRecords(); } /// /// Update Booking Status /// /// /// [HttpGet] [ProducesResponseType(StatusCodes.Status200OK)] [SwaggerOperation(Tags = new[] { "BatchJob" })] [Route("PartialFullLeadPush/{buId}")] public async Task PartialFullLeadPush([Required] int buId) { await Api.LeadCreateApiCall(buId); } }