public bool AddAssessmentQuestion(AssessmentQuestionRequest request) { AssessmentQuestion AQ = new AssessmentQuestion(); AQ.SelectedAssessmentId = request.SelectedAssessmentId; AQ.Question = request.Question; AQ.Option1 = request.Option1; AQ.Option2 = request.Option2; AQ.Option3 = request.Option3; AQ.Option4 = request.Option4; AQ.Option5 = request.Option5; AQ.Marks = request.Marks; AQ.CorrectOption = request.CorrectOption; AQ.CorrectOptionSequence = request.CorrectOptionSequence; bool response = false; try { SqlSvrDAL dal = new SqlSvrDAL(request.ClientInfo); dal.AddAssessmentQuestion(AQ); response = true; } catch (Exception ex) { //LogHelper.AddLog("AssessmentQuestionController", ex.Message, ex.StackTrace, "HCL.Academy.Service", request.ClientInfo.emailId); TelemetryClient telemetry = new TelemetryClient(); telemetry.TrackException(ex); } return(response); }