using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using PSTW_CentralSystem.Areas.Inventory.Models;
using PSTW_CentralSystem.DBContext;
using PSTW_CentralSystem.Models;

namespace PSTW_CentralSystem.Controllers
{
    public class PublicInventoryController : Controller
    {
        private readonly ILogger<PublicInventoryController> _logger;
        private readonly CentralSystemContext _centralDbContext;
        public PublicInventoryController(ILogger<PublicInventoryController> logger, CentralSystemContext centralDbContext)
        {
            _logger = logger;
            _centralDbContext = centralDbContext;
        }

        [HttpGet("/i/{Id}")]
        public IActionResult ItemInformation(string Id)
        {
            ViewData["ItemId"] = Id;
            return View("ItemInformation");
        }
    }
}
