void AddNewAppointmentWithReminder() { EditableSchedule schedule = CreateAppointmentWithReminders(); try { CarsDataProvider.InsertSchedule <EditableSchedule>(schedule); } catch (Exception e) { ViewData["SchedulerErrorText"] = e.Message; } }
void InsertAppointment() { ValidationSchedule schedule = SchedulerDataHelper.GetAppointmentToInsert <ValidationSchedule>( SchedulerDataHelper.CustomDataObject, SchedulerDemoHelper.CustomAppointmentStorage); if (schedule != null && TryValidateModel(schedule)) { CarsDataProvider.InsertSchedule <ValidationSchedule>(schedule); } else { ViewData["EditableSchedule"] = schedule; } }
static void InsertAppointment() { EditableSchedule carScheduling = GetAppointmentToInsert <EditableSchedule>(EditableDataObject, SchedulerDemoHelper.DefaultAppointmentStorage); CarsDataProvider.InsertSchedule <EditableSchedule>(carScheduling); }