public JsonResult GetInterviewCandidates() { UserSessionInfo sessId = new UserSessionInfo(); int userID = sessId.UserId; List <InterviewCandidateEntity> AccDetails = null; try { var objDtl = new InterviewCandidateComponent(); AccDetails = objDtl.GetInterviewCandidatesList(); ViewBag.OrgAccDetails = AccDetails[0].ICID; ViewBag.Userid = userID; } catch (Exception ex) { return(null); } return(Json(AccDetails, JsonRequestBehavior.AllowGet)); }