コード例 #1
0
 public Model.FAQ_Question GetQuestByKeyword(string keyword)// created 22 July 2015
 {
     Model.FAQ_Question subQuest = new FAQ_Question();
     try
     {
         if (FAQ_data == null) GetFaqData();
         subQuest = FAQ_data.questions.Where(q => q.keyword.Contains(keyword)).FirstOrDefault();
     }
     catch (Exception ex)
     {
         //AccountFunctions.logMsg("Could not load Question by keyword :: " + ex.Message);
         //List<Parameter> Params = new List<Parameter>();
         //Params.Add(AccountFunctions.createParameter("Location", "ViewModel FAQ"));
         //Params.Add(AccountFunctions.createParameter("Method", "Update static Faq question, Error:" + ex.Message));
         //FlurryWP8SDK.Api.LogEvent("FAQ Exception", Params);
     }
     return subQuest;
 }
コード例 #2
0
 public Model.FAQ_Question GetSubQuestion(int OnClickID)
 {
     Model.FAQ_Question subQuest = new FAQ_Question();
     try
     {
         if (FAQ_data == null) GetFaqData();
         subQuest = FAQ_data.questions.Where(q => q.id == OnClickID).FirstOrDefault();
     }
     catch (Exception ex) { //AccountFunctions.logMsg("Could not load Top Questions :: " + ex.Message); 
     }
     return subQuest;
 }