public ActionResult Index() { SetFacultyDetails(); Common common = new Common(); MeetingsAndNoticeBundle meetingsAndNoticeBundle = new MeetingsAndNoticeBundle(); meetingsAndNoticeBundle.NoticeBoard = common.NoticeBoard(); meetingsAndNoticeBundle.Meetings = common.Meetings(false, FacultyDetails.DeptID); return(View(meetingsAndNoticeBundle)); }
// GET: Principal public ActionResult Index() { GeneralUtil generalUtil = new GeneralUtil(); ViewData["TotalDepartments"] = generalUtil.Count("departments"); ViewData["TotalHods"] = generalUtil.Count("hod"); ViewData["TotalFaculties"] = generalUtil.Count("faculty"); ViewData["TotalMeetings"] = generalUtil.Count("meetings"); Common common = new Common(); MeetingsAndNoticeBundle meetingsAndNoticeBundle = new MeetingsAndNoticeBundle(); meetingsAndNoticeBundle.NoticeBoard = common.NoticeBoard(); meetingsAndNoticeBundle.Meetings = common.Meetings(); return View(meetingsAndNoticeBundle); }