I need some help with the select tag helper in ASP.NET Core.
I have a list of employees that I\'m trying to bind to a select tag helper. My employees are in a
In Get:
public IActionResult Create() { ViewData["Tags"] = new SelectList(_context.Tags, "Id", "Name"); return View(); }
In Post:
var selectedIds= Request.Form["Tags"];
In View :
Tags