コード例 #1
0
ファイル: ActivityController.cs プロジェクト: weedkiller/NINE
        //Ein spezielles Event abrufen
        /// <summary>
        /// Abfrage der speziellen Informationen eines Events
        /// </summary>
        /// <param name="EventId">EventId des Eventtermins</param>
        /// <returns>Informationen zum gewünschten Event</returns>
        public EventSingleResponse GetEvent(string EventId)
        {
            var eventService = new EventInfoService();

            var dbevent = eventService.GetEvent(EventId);

            var response = new EventSingleResponse
            {
                Event = dbevent,
            };

            return(response);
        }
コード例 #2
0
ファイル: ActivityController.cs プロジェクト: weedkiller/NINE
        //Eventinfo API
        //Alle kommenden Events abrufen
        /// <summary>
        /// Abfrage aller kommenden Events
        /// </summary>
        /// <returns>Liste aller zukünftigen Events</returns>
        public EventInfoResponse GetAllEvents()
        {
            var eventService = new EventInfoService();

            var eventList = eventService.GetAllEvents();

            var response = new EventInfoResponse
            {
                Events = eventList,
            };

            return(response);
        }