コード例 #1
0
ファイル: WebManager.cs プロジェクト: hnegron/ConferenceAdmin
        //Get content found in the Call for Participation section of the website
        public ParticipationQuery getParticipation()
        {
            try
            {
                ParticipationQuery participation = new ParticipationQuery();
                participation.participationParagraph1 = this.getInterfaceElement("participationParagraph1").content;

                return participation;
            }
            catch (Exception ex)
            {
                Console.Write("WebManager.getParticipation error " + ex);
                return null;
            }
        }
コード例 #2
0
ファイル: WebManager.cs プロジェクト: hnegron/ConferenceAdmin
 //Update content of the Call for Participation section of the website
 public bool saveParticipation(ParticipationQuery newParticipation)
 {
     try
     {
         using (conferenceadminContext context = new conferenceadminContext())
         {
             this.saveInterfaceElement("participationParagraph1", newParticipation.participationParagraph1);
             return true;
         }
     }
     catch (Exception ex)
     {
         Console.Write("WebManger.saveParticipation error " + ex);
         return false;
     }
 }