//Show data into Assing Participant Page Table public JsonResult AssignParticipantTable(int id) { //int pid = Convert.ToInt32(participantId); var isGet = _participantBll.GetById(id); var dataList = _batchPartiBll.GetAll(); var jsonData = dataList.Select(x => new BatchParticipantAss() { Id = x.Id, ParticipantId = x.ParticipantId, Profession = isGet.Profession, Name = x.Participant.Name }); return(Json(jsonData, JsonRequestBehavior.AllowGet)); }