예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }
예제 #4
0
 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);
 }
예제 #5
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);
 }
예제 #6
0
 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);
 }