I have an ActionResult method that displays records from a database table (below):
public class StudentController: Controller
stud= new StudentEntities ();
public ActionResult Index()
ViewData.Model = stud.StudentTable.ToList();
I want to design a method "ActionResult Student()" that accepts "Student ID" as a parameter and displays record for that particular student only.
What do I need to do to make this happen? Could anyone please help me with this?
Thanks in advance
View Complete Post