public ActionResult AddOrUpdateSchedule(bool isNew, string scheduleId, int CRN, string courseId, string instructorId, int section, string roomNumber, string days, string startDate, string endDate, string startTime, string endTime, int series)
        {
            Dal db = new Dal();

            Schedule schedule = new Schedule();

            schedule.ScheduleId = Convert.ToInt32(scheduleId);
            schedule.CRN        = CRN;
            schedule.Course     = courseId;
            schedule.Instructor = instructorId;
            schedule.Section    = section;
            schedule.location   = roomNumber;
            schedule.Days       = days;
            schedule.StartDate  = startDate;
            schedule.Enddate    = endDate;
            schedule.StartTime  = startTime;
            schedule.EndTime    = endTime;
            schedule.Series     = series;

            int result = db.AddOrUpdateSchedule(isNew, schedule);

            return(Json(new { result = result.ToString() }, JsonRequestBehavior.AllowGet));
        }