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.
 
 
 

48 lines
1.2 KiB

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;
}
/// <summary>
///
/// </summary>
/// <returns></returns>
// [Authorize]
[HttpGet]
[ProducesResponseType(StatusCodes.Status200OK)]
[SwaggerOperation(Tags = new[] { "Process24HrOldRecords" })]
[Route("BatchJob")]
public async Task Process24HrOldRecords()
{
await Api.Process24HrOldRecords();
}
/// <summary>
/// Update Booking Status
/// </summary>
/// <param name="buId"></param>
/// <returns></returns>
[HttpGet]
[ProducesResponseType(StatusCodes.Status200OK)]
[SwaggerOperation(Tags = new[] { "BatchJob" })]
[Route("PartialFullLeadPush/{buId}")]
public async Task PartialFullLeadPush([Required] int buId)
{
await Api.LeadCreateApiCall(buId);
}
}