namespace GrossesMitainesAPI.Controllers; using GrossesMitainesAPI.Data; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Mvc; [EnableCors("_myAllowSpecificOrigins"), ApiController, Route("api/[controller]"), Authorize(AuthenticationSchemes = "Identity.Application", Roles = "Administrateur")] public class InvoiceController : Controller { private readonly ILogger _logger; private readonly InventoryContext _context; public InvoiceController(ILogger logger, InventoryContext context) { this._logger = logger; this._context = context; } }