// GET: Enrollments public ActionResult Index() { return(View(from e in _Eobj.GetAll() select e)); }
// GET: Courses public ActionResult Index() { return(View(from c in _Courseobj.GetAll() select c)); }
// GET: Course public ActionResult Index() { return(View(from c in Cobj.GetAll() select c)); //lamba expression in the method to retrive all the data from database using lamba expression }