コード例 #1
0
        protected Boolean CheckIfScheduledForCurrentUser(Entity schedule, Guid contactId)
        {
            if (schedule == null)
            {
                return(false);
            }

            var eventSchedule = ServiceContext.CreateQuery("adx_eventschedule").FirstOrDefault(et => et.GetAttributeValue <Guid>("adx_eventscheduleid") == schedule.GetAttributeValue <Guid>("adx_eventscheduleid"));

            return(eventSchedule != null && ServiceContext.CheckIfScheduledForCurrentUser(eventSchedule, contactId));
        }