// GET: Institute/Dashboard
        public ActionResult Index()
        {
            InstituteRepository _objRepository = new InstituteRepository();
            DataSet             _ds            = _objRepository.Get_Dashboard_Data(Session["InstituteID"].ToString(), ConfigurationManager.AppSettings["ParticipatedYear"].ToString());

            if (_ds != null)
            {
                if (_ds.Tables[0].Rows.Count > 0)
                {
                    foreach (DataRow _dr in _ds.Tables[0].Rows)
                    {
                        ViewBag.InstituteProfile      = _dr["InstituteProfile"].ToString();
                        ViewBag.Courses               = _dr["Courses"].ToString();
                        ViewBag.NicheCourses          = _dr["NicheCourses"].ToString();
                        ViewBag.Campus                = _dr["Campus"].ToString();
                        ViewBag.CostOfLiving          = _dr["CostOfLiving"].ToString();
                        ViewBag.InternationalStudents = _dr["InternationalStudents"].ToString();
                        ViewBag.FacultyAlumni         = _dr["FacultyAlumni"].ToString();
                        ViewBag.HowToReach            = _dr["HowToReach"].ToString();
                        ViewBag.Gallery               = _dr["Gallery"].ToString();
                    }
                }
                if (_ds.Tables[1].Rows.Count > 0)
                {
                    foreach (DataRow _dr in _ds.Tables[1].Rows)
                    {
                        ViewBag.HeadName   = _dr["HeadPrefix"].ToString() + " " + _dr["HeadFirstName"].ToString() + " " + _dr["HeadLastName"].ToString() + " (" + _dr["HeadDesignation"].ToString() + ")";
                        ViewBag.HeadEmail  = _dr["HeadEmail"].ToString();
                        ViewBag.HeadMobile = _dr["HeadMobile"].ToString();
                        ViewBag.HeadPhone  = _dr["HeadPhone"].ToString();

                        ViewBag.NodalName   = _dr["NodalPrefix"].ToString() + " " + _dr["NodalFirstName"].ToString() + " " + _dr["NodalLastName"].ToString() + " (" + _dr["NodalDesignation"].ToString() + ")";
                        ViewBag.NodalEmail  = _dr["NodalEmail"].ToString();
                        ViewBag.NodalMobile = _dr["NodalMobile"].ToString();
                        ViewBag.NodalPhone  = _dr["NodalPhone"].ToString();
                    }
                }
            }

            //ViewBag.InstituteProfile = "100";
            //ViewBag.Courses = "10";
            //ViewBag.Campus = "35";
            //ViewBag.CostOfLiving = "33";
            //ViewBag.InternationalStudents = "65";
            //ViewBag.FacultyAlumni = "70";
            //ViewBag.HowToReach = "19";
            //ViewBag.Gallery = "80";

            return(View());
        }
        // GET: Admin/PreviewInstitute
        public ActionResult Index(string instituteid = "", string Name = "")
        {
            TempData["InstituteID"]   = instituteid;
            TempData["InstituteName"] = Name;
            InstituteRepository _objRepository = new InstituteRepository();
            DataSet             _ds            = _objRepository.Get_Dashboard_Data(instituteid);

            if (_ds != null)
            {
                if (_ds.Tables[0].Rows.Count > 0)
                {
                    foreach (DataRow _dr in _ds.Tables[0].Rows)
                    {
                        ViewBag.InstituteProfile      = _dr["InstituteProfile"].ToString();
                        ViewBag.Courses               = _dr["Courses"].ToString();
                        ViewBag.NicheCourses          = _dr["NicheCourses"].ToString();
                        ViewBag.Campus                = _dr["Campus"].ToString();
                        ViewBag.CostOfLiving          = _dr["CostOfLiving"].ToString();
                        ViewBag.InternationalStudents = _dr["InternationalStudents"].ToString();
                        ViewBag.FacultyAlumni         = _dr["FacultyAlumni"].ToString();
                        ViewBag.HowToReach            = _dr["HowToReach"].ToString();
                        ViewBag.Gallery               = _dr["Gallery"].ToString();
                    }
                }
                if (_ds.Tables[1].Rows.Count > 0)
                {
                    foreach (DataRow _dr in _ds.Tables[1].Rows)
                    {
                        ViewBag.HeadName   = _dr["HeadPrefix"].ToString() + " " + _dr["HeadFirstName"].ToString() + " " + _dr["HeadLastName"].ToString() + " (" + _dr["HeadDesignation"].ToString() + ")";
                        ViewBag.HeadEmail  = _dr["HeadEmail"].ToString();
                        ViewBag.HeadMobile = _dr["HeadMobile"].ToString();
                        ViewBag.HeadPhone  = _dr["HeadPhone"].ToString();

                        ViewBag.NodalName   = _dr["NodalPrefix"].ToString() + " " + _dr["NodalFirstName"].ToString() + " " + _dr["NodalLastName"].ToString() + " (" + _dr["NodalDesignation"].ToString() + ")";
                        ViewBag.NodalEmail  = _dr["NodalEmail"].ToString();
                        ViewBag.NodalMobile = _dr["NodalMobile"].ToString();
                        ViewBag.NodalPhone  = _dr["NodalPhone"].ToString();
                    }
                }
            }
            TempData.Keep("InstituteID");
            TempData.Keep("InstituteName");
            return(View());
        }