Esempio n. 1
0
        void InsertAppointment()
        {
            ValidationSchedule schedule = SchedulerDataHelper.GetAppointmentToInsert <ValidationSchedule>(
                SchedulerDataHelper.CustomDataObject, SchedulerDemoHelper.CustomAppointmentStorage);

            if (schedule != null && TryValidateModel(schedule))
            {
                CarsDataProvider.InsertSchedule <ValidationSchedule>(schedule);
            }
            else
            {
                ViewData["EditableSchedule"] = schedule;
            }
        }