Ejemplo n.º 1
0
 public void LoadAnswer(int answerid)
 {
     SearchModel sm = new SearchModel("HQ_MemberAnswer");
     sm["id"] = answerid;
     var entity = sm.LoadEntity<HQ_MemberAnswer>();
     if (entity != null)
     {
         var e = new HQ_MemberAnswer();
         e["ID"] = entity.ID;
         e.IsView = 1;
         e.Save();
         OutResult(new { Answer = entity.Answer });
     }
     else
     {
         OutResult(new { Answer = string.Empty });
     }
 }
Ejemplo n.º 2
0
 public long SaveAnswer(HQ_MemberAnswer answer)
 {
     return answer.Save();
 }