public bool AddSkillTraining(SkillTrainingRequest req) { bool result = false; try { SkillTraining skillTraining = new SkillTraining(); skillTraining.selectedTraining = req.selectedTraining; skillTraining.selectedCompetence = req.selectedCompetence; skillTraining.selectedGEO = req.selectedGEO; skillTraining.selectedSkill = req.selectedSkill; skillTraining.isMandatory = req.isMandatory; skillTraining.isAssessmentRequired = req.isAssessmentRequired; skillTraining.assessmentId = req.assessmentId; skillTraining.points = req.points; SqlSvrDAL dal = new SqlSvrDAL(req.ClientInfo); result = dal.AddSkillTraining(skillTraining); } catch (Exception ex) { //LogHelper.AddLog("TrainingController,AddSkillTraining", ex.Message, ex.StackTrace, "HCL.Academy.Service", req.ClientInfo.emailId); TelemetryClient telemetry = new TelemetryClient(); telemetry.TrackException(ex); } return(result); }