// GET: Student/Details/5 public ActionResult Details(int id) { Student st = new Student(); Connected con = new Connected(); st = con.StudentData(id); Session["StudentID"] = id; return(View(st)); }
// GET: Student/Details/5 public ActionResult Details(int id) { Student st = new Student(); Connected con = new Connected(); st = con.StudentData(id); Session["StudentID"] = id; return(View(st)); }