..., remembering that I put a check in manual, which is not a property of my viewmodel.
This doesn’t make much sense. In fact, there’s no way Controller guess what you selected on screen. You need to pass to the Controller a data model that admits Checkboxes.
I already answered a very similar question some time ago, using a specific package to create Checkboxes. It was only necessary to point out a good example of Binding, which I do below:
Model:
namespace MeuProjeto.ViewModels
{
public class PostedFruitsViewModel
{
public string[] FruitIds { get; set; }
}
}
Controller:
[HttpPost]
public ActionResult Index(PostedFruits postedFruits)
{
// Os Ids de Fruits selecionados estarão em postedFruits.FruitIds.
}
Give more dates so we can help you.
– Viniam