44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
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";
|
|
}
|
|
/// <summary>
|
|
/// Order detail for cost evaluation
|
|
/// </summary>
|
|
/// <param name="OrderId"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("OrderDetail")]
|
|
public async Task<OrderDetailsDTO> 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!;
|
|
}
|
|
}
|