using DealerSelection.Api.Interface; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Swashbuckle.AspNetCore.Annotations; namespace DealerSelection.WebApi.Controllers; [ApiController] [Route("BatchJob")] public class BatchJobController : ControllerBase { private IBatchJobApi Api { get; } public BatchJobController(IBatchJobApi api) { Api = api; } /// /// /// /// [Authorize] [HttpPost] [ProducesResponseType(StatusCodes.Status200OK)] [SwaggerOperation(Tags = new[] { "Process24HrOldRecords" })] [Route("BatchJob")] public async Task Process24HrOldRecords() { await Api.Process24HrOldRecords(); } }