Esempio n. 1
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);
 }
Esempio n. 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;
         BusinessLogic.Common.Common common = new BusinessLogic.Common.Common();
         common.CreateErrorLog(0, "GetQuestions", e.Message, 0);
     }
     return(null);
 }