|  |  | 1 |  | using LGDXRobotCloud.API.Services.Automation; | 
|  |  | 2 |  | using LGDXRobotCloud.Data.Models.DTOs.V1.Requests; | 
|  |  | 3 |  | using LGDXRobotCloud.Utilities.Constants; | 
|  |  | 4 |  | using Microsoft.AspNetCore.Authorization; | 
|  |  | 5 |  | using Microsoft.AspNetCore.Mvc; | 
|  |  | 6 |  |  | 
|  |  | 7 |  | namespace LGDXRobotCloud.API.Areas.Automation.Controllers; | 
|  |  | 8 |  |  | 
|  |  | 9 |  | [ApiController] | 
|  |  | 10 |  | [Area("Automation")] | 
|  |  | 11 |  | [Route("[area]/[controller]")] | 
|  |  | 12 |  | [Authorize(AuthenticationSchemes = LgdxRobotCloudAuthenticationSchemes.ApiKeyOrCertificateScheme)] | 
|  | 0 | 13 |  | public class AutoTasksNextController( | 
|  | 0 | 14 |  |     IAutoTaskService autoTaskService | 
|  | 0 | 15 |  |   ) : ControllerBase | 
|  |  | 16 |  | { | 
|  | 0 | 17 |  |   private readonly IAutoTaskService _autoTaskService = autoTaskService ?? throw new ArgumentNullException(nameof(autoTas | 
|  |  | 18 |  |  | 
|  |  | 19 |  |   [HttpPost("{id}")] | 
|  |  | 20 |  |   [ProducesResponseType(StatusCodes.Status204NoContent)] | 
|  |  | 21 |  |   [ProducesResponseType(typeof(ValidationProblemDetails), StatusCodes.Status400BadRequest)] | 
|  |  | 22 |  |   public async Task<IActionResult> AutoTaskNext(int id, AutoTaskNextDto autoTaskNextDto) | 
|  | 0 | 23 |  |   { | 
|  | 0 | 24 |  |     await _autoTaskService.AutoTaskNextApiAsync(autoTaskNextDto.RobotId, id, autoTaskNextDto.NextToken); | 
|  | 0 | 25 |  |     return NoContent(); | 
|  | 0 | 26 |  |   } | 
|  |  | 27 |  | } |