Finaly...
I found the solution, in the Edit.cshtml, I added:
@model MvcApplication.Models.SkillsViewModel
also I separated each block with:
@using (Html.BeginForm("Edit", "UserDetail"))
depending om which Action and what it should do, then I have noticed that the checkboxList is written in a wrong way (foreach..) I have fixed it to be:
for (int i = 0; i < Model.AvailableSkills.Count; i++)
Finally inside the Action (HttpPost) for each block, I retrieved the corresponding variables, List, and class:
public ActionResult ValidSkills(SkillsViewModel Sk )
{
if (ModelState.IsValid)
{
>>>>
return View("FeedBak",Sk);
}
return View();
}
Keep in mind that in the view, you need to have the data which u need to retrieve, written as:
@Html.HiddenFor(model => model.Usr.Id)
@Html.HiddenFor(model => model.Usr.UserId)
Thank you