Ejemplo n.º 1
0
        public ActionResult EventMap(Guid calendarEventID)
        {
            var calendarEvent = ExigoDAL.GetCalendarEvents(new GetCalendarEventsRequest {
                EventID = calendarEventID
            }).FirstOrDefault();

            return(View(calendarEvent));
        }
Ejemplo n.º 2
0
        public ActionResult EventsMap()
        {
            var model = new EventsMapViewModel();

            model.CalendarFilters = new CalendarViewModel(Identity.Current.CustomerID);
            model.Events          = ExigoDAL.GetCalendarEvents(new GetCalendarEventsRequest()
            {
                CustomerID = Identity.Current.CustomerID
            });
            return(View(model));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Get Events for the Kendo Scheduler
        /// </summary>
        /// <returns>JSON Net Result</returns>
        public ActionResult GetEvents(KendoGridRequest request)
        {
            // Establish the query
            var query = ExigoDAL.GetCalendarEvents(new GetCalendarEventsRequest()
            {
                CustomerID = Identity.Current.CustomerID,
                IncludeCalendarSubscriptions = true
            }).AsQueryable();


            // Fetch the data
            var context = new KendoGridDataContext();

            return(context.Query(request, query, c => new
            {
                c.ID,
                c.Title,
                c.Description,
                Start = c.Start.ToString("o"),
                End = c.End.ToString("o"),
                c.StartTimezone,
                c.EndTimezone,
                c.RecurrenceID,
                c.RecurrenceRule,
                c.RecurrenceException,
                c.IsAllDay,
                c.CalendarID,
                c.CalendarEventTypeID,
                c.CalendarEventPrivacyTypeID,
                c.CreatedBy,
                CreatedDate = c.CreatedDate.ToString("s"),
                Tags = string.Join(", ", c.Tags),
                Location_Address1 = c.Location.Address1,
                Location_Address2 = c.Location.Address2,
                Location_City = c.Location.City,
                Location_State = c.Location.State,
                Location_Zip = c.Location.Zip,
                Location_Country = c.Location.Country,
                c.SpeakerID,
                c.Phone,
                c.Flyer,
                c.Cost,
                c.ConferenceNumber,
                c.ConferencePIN,
                c.Url
            }));
        }