コード例 #1
0
ファイル: WebManager.cs プロジェクト: hnegron/ConferenceAdmin
        //Update content of the Venue section of the website
        public bool saveVenue(VenueQuery newVenue)
        {
            try
            {
                using (conferenceadminContext context = new conferenceadminContext())
                {
                    this.saveInterfaceElement("venueParagraph1", newVenue.venueParagraph1);

                    this.saveInterfaceElement("venueTitleBox", newVenue.venueTitleBox);

                    this.saveInterfaceElement("venueParagraphContentBox", newVenue.venueParagraphContentBox);

                    return true;
                }
            }
            catch (Exception ex)
            {
                Console.Write("WebManger.saveVenue error " + ex);
                return false;
            }
        }
コード例 #2
0
ファイル: WebManager.cs プロジェクト: hnegron/ConferenceAdmin
        //Get content found in the Venue section of the website
        public VenueQuery getVenue()
        {
            try
            {
                VenueQuery venue = new VenueQuery();
                venue.venueParagraph1 = this.getInterfaceElement("venueParagraph1").content;
                venue.venueTitleBox = this.getInterfaceElement("venueTitleBox").content;
                venue.venueParagraphContentBox = this.getInterfaceElement("venueParagraphContentBox").content;

                return venue;
            }
            catch (Exception ex)
            {
                Console.Write("WebManager.getVenue error " + ex);
                return null;
            }
        }