User1520731567 posted
Hi polachan,
For example,if you select DepotCheck, all checkbox named DepotLink will be selected,
you just modify the controller,like:
[HttpPost]
public IActionResult DepotUserLink(DepotUserLink depotuserlink,string[] DepotLink)
{
return View();
}
string[] DepotLink will get all value of checkbox
named DepotLink.
if you would like to get their Id,you could modify,like:
<input type="checkbox" name="DepotLink" value="@_userDepot.Id" asp-for="checkboxDepotLink" />
Like the picture:

Best Regards.
Yuki Tao