public ActionResult Create(ClassSchedule classschedule)
        {
            if (ModelState.IsValid)
            {
                db.ClassSchedules.Add(classschedule);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(classschedule);
        }
 public ActionResult Edit(ClassSchedule classschedule)
 {
     if (ModelState.IsValid)
     {
         db.Entry(classschedule).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(classschedule);
 }