Bo zrobiłem sobie to w widoku, a gwiazki patrzylem ale nie ogarniam tego :o
Zrobilem sobie taki kontroler:
public ActionResult Index()
{
ViewData["Glosy"] = (from g in baza.Glosy orderby g.id select g).ToList();
return View(baza.Filmy);
}
[HttpPost]
public ActionResult Ocena()
{
int id_x = Int32.Parse(Request.Params["id_x"].ToString());
Glosy glos = new Glosy();
glos.id = id_x;
glos.ocena = Int32.Parse(Request.Params["ocena"].ToString());
baza.Glosy.InsertOnSubmit(glos);
baz.SubmitChanges();
ViewData["Glosy"] = (from g in baza.Glosy orderby g.id select g).ToList();
return View("Index", baza.Filmy);
}
Cos pewnie pomieszałem ;o jesli jest to dobrze to jak to podpiac pod ten kod html