public string GetPOEKeyAction(int poeid) { try { POEBL pobl = new POEBL(); return(pobl.GetPOEKeyAction(poeid)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; } return(null); }
public List <Question> GetQuestions(int moduleId) { try { POEBL pobl = new POEBL(); return(pobl.GetQuestions(moduleId)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; } return(null); }
public bool GetPoEResultMode(int userId, int poeId) { try { POEBL feedback = new POEBL(); return(feedback.GetPoEResultMode(userId, poeId)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(userId, "GetPoEResultMode", e.Message, 0); } return(false); }
public int GetQuestionCount(int poeid, int type) { try { POEBL pobl = new POEBL(); return(pobl.GetQuestionCount(poeid, type)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(0, "GetQuestionCount", e.Message, 0); } return(0); }
public List <Module> GetSurveyQuestions(int poeid) { try { POEBL pobl = new POEBL(); return(pobl.GetSurveyModules(poeid)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(0, "GetSurveyQuestions", e.Message, 0); } return(null); }
public string GetModuleKeyAction(int poeid, int moduleId) { try { POEBL pobl = new POEBL(); return(pobl.GetModuleKeyAction(poeid, moduleId)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(0, "GetModuleKeyAction", e.Message, 0); } return(null); }