using Microsoft.AspNetCore.Mvc; using Ticketing.Models; namespace Ticketing.ViewComponents; /// A badge with the seats of a show, used as <vc:seats-left show="…" />. public sealed class SeatsLeftViewComponent : ViewComponent { public IViewComponentResult Invoke(Show show) => View(show.Capacity); }