0
I have the following view where I have a list of articles registered in the database, then I have the evaluate button that redirects to another view where it is in another controller, I want to pass id of the selected article to another controller. Follow image of the project
View action code evaluate
public ActionResult Create([Bind(Include = "AvaliacaoID,NotaArtigo,ComentarioRevisao")] AvaliarArtigo avaliarArtigo)
{
if (ModelState.IsValid)
{
db.AvaliarArtigos.Add(avaliarArtigo);
db.SaveChanges();
return RedirectToAction("Index", "Home");
}
return View(avaliarArtigo);
}