//
        // GET: /Section/
        public ActionResult Index()
        {
            SessionMasterModel objSessionModel = new SessionMasterModel();
            ClassMasterModel   objClassModel   = new ClassMasterModel();

            objBDCCommon = new CommonMasterDataBusiness();

            var SessionType = objBDCCommon.GetSessionMaster();

            objSessionModel.SessionList = new SelectList(SessionType, "SessionId", "Title");
            ViewBag.SessionInfo         = objSessionModel.SessionList;

            var ClassType = objBDCCommon.GetClassMaster(Convert.ToInt32(Session[CommonStrings.DefaultSession]));

            objClassModel.ClassList = new SelectList(ClassType, "ClassId", "Title");
            ViewBag.ClassInfo       = objClassModel.ClassList;

            SectionMasterCustomModel objModel = new SectionMasterCustomModel();

            objBDC             = new SectionMasterBusiness();
            objModel.SessionId = Convert.ToInt32(Session[CommonStrings.DefaultSession]);
            var rs = objBDC.GetSectionMasterListing(objModel);

            ViewBag.SessionValue = Session[CommonStrings.DefaultSession].ToString();

            return(View(rs));
        }
        public ActionResult SearchSessionWiseResult(int?SessionId, int?ClassId)
        {
            SectionMasterCustomModel objModel = new SectionMasterCustomModel();

            objBDC             = new SectionMasterBusiness();
            objModel.SessionId = SessionId;
            objModel.ClassId   = ClassId;
            var rs = objBDC.GetSectionMasterListing(objModel);

            @ViewBag.TotalStudents = rs.ToString().Count();
            return(PartialView(rs));
        }