NonInventPurchasingSystem/CPRNIMS.WebApps/ViewComponents/Inventory/InventoryTabPageViewComponent.cs
2026-06-15 16:41:50 +08:00

20 lines
694 B
C#

using Microsoft.AspNetCore.Mvc;
namespace CPRNIMS.WebApps.ViewComponents.Inventory
{
public class InventoryTabPageViewComponent : ViewComponent
{
public IViewComponentResult Invoke(int InventoryTabPageId)
{
string viewName = InventoryTabPageId switch
{
1 => "~/Views/Components/Inventory/TabPage/Inventory.cshtml",
2 => "~/Views/Components/Inventory/TabPage/RISForApproval.cshtml",
3 => "~/Views/Components/Inventory/TabPage/MRS.cshtml",
_ => "~/Views/Components/Inventory/TabPage/InventoryTransaction.cshtml"
};
return View(viewName);
}
}
}