public ActionResult SearchSessionWiseResult(int?SessionId)
        {
            ClassMasterCustomModel objModel = new ClassMasterCustomModel();

            objBDC             = new ClassMasterBusiness();
            objModel.SessionId = SessionId;
            var rs = objBDC.GetClassMasterListing(objModel);

            @ViewBag.TotalStudents = rs.ToString().Count();
            return(PartialView(rs));
        }
 public Response GetClassMasterListing(ClassMasterCustomModel objClassRegistrationModel)
 {
     _response = new Response();
     try
     {
         _response.responseData = objBDC.GetClassMasterListing(objClassRegistrationModel);
         _response.message      = "Records loaded successfully !!";
         _response.success      = true;
     }
     catch (Exception ex)
     {
         _response.success = false;
         _response.message = ex.Message.ToString();
     }
     finally
     {
         objBDC.Dispose();
     }
     return(_response);
 }
        //
        // GET: /Class/
        public ActionResult Index()
        {
            ViewBag.SessionValue = Session[CommonStrings.DefaultSession].ToString();

            SessionMasterModel objSessionModel = new SessionMasterModel();

            objBDCCommon = new CommonMasterDataBusiness();

            var SessionType = objBDCCommon.GetSessionMaster();

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

            ClassMasterCustomModel objModel = new ClassMasterCustomModel();

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

            return(View(rs));
        }