Hello
I have an array of checkboxes, and trying to filter them, but when no checkbox is checked, it throws an System.ArgumentNullException
public ActionResult UserEdit(string[] UsergroupIDs)
{
IEnumerable<Usergroup> userUsergroups =
UsergroupIDs.Where(x => x != "false")
.Select(x => (Usergroup)_ug.GetUsergroups(int.Parse(x)).FirstOrDefault());
How should I modify this one?
/M