// GET: Courses/Details/5 public ActionResult Details(int id) { Course c = _Courseobj.FindbyID(id); return(View(c)); }
// GET: Course/Details/5 public ActionResult Details(int id) // Get detail of the specific id passing as a parameter to object of GenericRepo class { Course c = Cobj.FindbyID(id); return(View(c)); }
// GET: Enrollments/Details/5 public ActionResult Details(int id) { Enrollment e = _Eobj.FindbyID(id); return(View(e)); }
// GET: Students/Details/5 public ActionResult Details(int id) { Student s = Sobj.FindbyID(id); // Get detail of the specific id passing as a parameter to object of GenericRepo class return(View(s)); }