Exemplo n.º 1
0
        public bool AddTraining(TrainingMasterRequest request)
        {
            bool response = false;

            try
            {
                SqlSvrDAL dal = new SqlSvrDAL(request.ClientInfo);
                response = dal.AddTraining(request.title, request.description, request.skillType, request.trainingCategory, request.trainingLink, request.selectedContent, request.document);
            }
            catch (Exception ex)
            {
                //LogHelper.AddLog("TrainingMasterController,AddTraining", ex.Message, ex.StackTrace, "HCL.Academy.Service", request.ClientInfo.emailId);
                TelemetryClient telemetry = new TelemetryClient();
                telemetry.TrackException(ex);
            }
            return(response);
        }