diff --git a/WebDoorCreator.API/Controllers/OrderController.cs b/WebDoorCreator.API/Controllers/OrderController.cs new file mode 100644 index 0000000..5bd8ac4 --- /dev/null +++ b/WebDoorCreator.API/Controllers/OrderController.cs @@ -0,0 +1,43 @@ +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using NLog; +using WebDoorCreator.Data.DTO; +using WebDoorCreator.Data.Services; + +namespace WebDoorCreator.API.Controllers +{ + [Route("api/[controller]")] + [ApiController] + public class OrderController : ControllerBase + { + public OrderController(IConfiguration configuration, QueueDataService DataService) + { + Log.Info("Starting OrderController"); + _configuration = configuration; + QDataServ = DataService; + Log.Info("Avviato OrderController"); + } + // GET: api/Alive + [HttpGet] + public string Get() + { + return "OK"; + } + /// + /// Order detail for cost evaluation + /// + /// + /// + [HttpGet("OrderDetail")] + public async Task OrderDetail(int OrderId) + { + OrderDetailsDTO answ = new OrderDetailsDTO(); + return answ; + } + + private static IConfiguration _configuration = null!; + + private static Logger Log = LogManager.GetCurrentClassLogger(); + private QueueDataService QDataServ { get; set; } = null!; + } +} diff --git a/WebDoorCreator.API/Controllers/QueueController.cs b/WebDoorCreator.API/Controllers/QueueController.cs index 3cf4e79..b1c00dd 100644 --- a/WebDoorCreator.API/Controllers/QueueController.cs +++ b/WebDoorCreator.API/Controllers/QueueController.cs @@ -130,6 +130,8 @@ namespace WebDoorCreator.API.Controllers return actQueue; } + + #endregion Public Methods #region Private Fields