private string GetChildRecordId(SurveyAnswerDTO surveyAnswerDTO) { SurveyAnswerRequest SurveyAnswerRequest = new SurveyAnswerRequest(); SurveyAnswerResponse SurveyAnswerResponse = new SurveyAnswerResponse(); string ChildId = Guid.NewGuid().ToString(); surveyAnswerDTO.ParentRecordId = surveyAnswerDTO.ResponseId; surveyAnswerDTO.ResponseId = ChildId; surveyAnswerDTO.Status = 1; SurveyAnswerRequest.SurveyAnswerList.Add(surveyAnswerDTO); string result; //responseId = TempData[Epi.Web.MVC.Constants.Constant.RESPONSE_ID].ToString(); string Id = Session["UserId"].ToString(); SurveyAnswerRequest.Criteria.UserId = SurveyHelper.GetDecryptUserId(Id);//_UserId; SurveyAnswerRequest.RequestId = ChildId; SurveyAnswerRequest.Action = "CreateMulti"; SurveyAnswerResponse = _isurveyFacade.SetChildRecord(SurveyAnswerRequest); result = SurveyAnswerResponse.SurveyResponseList[0].ResponseId.ToString(); return(result); }