コード例 #1
0
 public HttpResponseMessage RetriveQuestions(string entity, Int64? contractId=0)
 {
     IList<QuestionsModel> response;
     using (QuestionTier dT = new QuestionTier())
     {
         response = dT.RetrieveQuesAnswers(entity,contractId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
コード例 #2
0
 public HttpResponseMessage UpdateAnswers(List<QuestionsModel> listAnswers, Int64 taskTypeId, Int64 workflowId, Int16 isCompleted, string entity = "Contract", string scriptFile="")
 {
     using (QuestionTier mt = new QuestionTier())
     {
         if (mt.InsUpdateAnswers(listAnswers, taskTypeId, workflowId, isCompleted, entity, scriptFile))
         {
             return this.Request.CreateResponse(HttpStatusCode.OK);
         }
         else
         {
             return this.Request.CreateResponse(HttpStatusCode.NotModified);
         }
     }
 }