예제 #1
0
        public void TestUpdate()
        {
            Schedule schedule = new Schedule();

            schedule.EventTitle       = "Test title";
            schedule.EventDescription = "Description";
            schedule.StartTime        = "2018-01-22 22:11:32";
            Assert.True(ScheduleDBConnector.Update(dataSource, schedule));
        }
        public void TestUpdate()
        {
            Schedule schedule = new Schedule();

            schedule.EventTitle       = "Test16 title";
            schedule.EventDescription = "Description";
            schedule.StartTime        = "2018-01-22 22:11:32";
            schedule.EndTime          = "2018-01-22 22:11:32";
            schedule.Presenter        = "prof";
            schedule.Room             = "Javits";
            Assert.True(ScheduleDBConnector.Update(dataSource, schedule));
        }
        public IActionResult Edit(Schedule schedule, int id)
        {
            ScheduleDBConnector.Update(Constants.DATA_SOURCE, schedule);

            return(Redirect("/Schedule"));
        }