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.
 
 
 

32 lines
765 B

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;
}
/// <summary>
///
/// </summary>
/// <returns></returns>
[Authorize]
[HttpPost]
[ProducesResponseType(StatusCodes.Status200OK)]
[SwaggerOperation(Tags = new[] { "Process24HrOldRecords" })]
[Route("BatchJob")]
public async Task Process24HrOldRecords()
{
await Api.Process24HrOldRecords();
}
}