I have two classes in a model, see below:
public class Action
{
public int Id { get; set; }
public bool HasChecked { get; set; }
}
public class Function
{
public int Id { get; set; }
public IEnumerable<Action> Actions { get; set; }
}
public class Permission
{
public int Id { get; set; }
public IEnumerable<Function> Functions { get; set; }
}
I want to know what is the best option to use CheckBox in chstml, since I have a Permission model to viewModel. Is it possible to return the typed collection to the controller? (Permisson has many Functions with many actions)
Thanks!