I have a controller with an action method as follows:
public class InventoryController : Controller { public ActionResult ViewStockNext(int firstItem)
Using the ASP.NET Core Tag Helper feature:
@item.Text