public JsonResult Select_Institute_Details() { List <InstituteMaster> _list = new List <InstituteMaster>(); InstituteRepository _objRepository = new InstituteRepository(); //using (IInstituteMaster _objRepository = new RInstituteMaster()) //{ DataSet ds = _objRepository.Search_Institute_By_Id(Session["InstituteID"].ToString()); if (ds != null) { if (ds.Tables[0].Rows.Count > 0) { foreach (DataRow row in ds.Tables[0].Rows) { InstituteMaster _objList = new InstituteMaster(); _objList.ID = row["ID"].ToString(); _objList.InstituteID = row["InstituteID"].ToString(); _objList.InstituteName = row["InstituteName"].ToString(); _objList.Email = row["Email"].ToString(); _objList.Address = row["Address"].ToString(); _objList.State = row["State"].ToString(); _objList.City = row["City"].ToString(); _objList.Pin = row["Pin"].ToString(); _objList.YOE = row["YOE"].ToString(); _objList.Description = row["Description"].ToString(); //_objList.History = row["History"].ToString(); //_objList.Awards = row["Awards"].ToString(); //_objList.Fellows = row["Fellows"].ToString(); //_objList.News = row["News"].ToString(); //_objList.Area = row["Area"].ToString(); //_objList.ProgramOffered = row["ProgramOffered"].ToString(); _objList.IsSubmited = row["IsSubmited"].ToString(); _objList.Description = row["Description"].ToString(); _objList.AcademicCourses = row["AcademicCourses"].ToString(); _objList.AreaOfExcellence = row["AreaOfExcellence"].ToString(); _objList.ResearchCapability = row["ResearchCapability"].ToString(); // _objList.FacultyOverview = row["FacultyOverview"].ToString(); _objList.NotableResearchPublication = row["NotableResearchPublication"].ToString(); _objList.NIRFRanking = row["NIRFRanking"].ToString(); _objList.NBANAACAccreditation = row["NBANAACAccreditation"].ToString(); _objList.instituteweburl = row["instituteweburl"].ToString(); _list.Add(_objList); } } // } } return(Json(new { List = _list }, JsonRequestBehavior.AllowGet )); }