Beispiel #1
0
        // GET: Dashboard
        public ActionResult Index()
        {
            if (Session[CommonStrings.DefaultSession] != null)
            {
                ViewBag.DefaultSessionId = Session[CommonStrings.DefaultSession];
            }

            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;

            int?SessionId = null;
            int?ClassId   = null;

            objBDC = new DashboardMasterBusiness();
            ViewBag.EnquiryCount = objBDC.GetDashboardEnquiryCount(SessionId, ClassId);

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

            return(View());
        }
Beispiel #2
0
        public ActionResult SearchSessionWiseResult(int?SessionId, int?ClassId)
        {
            ClassMasterCustomModel objModel = new ClassMasterCustomModel();

            objBDC               = new DashboardMasterBusiness();
            objModel.SessionId   = SessionId;
            ViewBag.EnquiryCount = objBDC.GetDashboardEnquiryCount(SessionId, ClassId);

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