Exemple #1
0
        public static Event UpdateEvent(Event e)
        {
            ApplicationContext.Current.DatabaseContext.Database.Update(e);

            //Save the event descriptions
            foreach (var desc in e.descriptions)
            {
                DescriptionService.UpdateDescription(desc);
            }

            return(e);
        }
        public static RecurringEvent UpdateEvent(RecurringEvent revent)
        {
            ApplicationContext.Current.DatabaseContext.Database.Update(revent);

            //Save the event descriptions
            foreach (var desc in revent.descriptions)
            {
                DescriptionService.UpdateDescription(desc);
            }

            return(revent);
        }