public ActionResult Create(CalendarClassRoom cclassroom)
 {
     if (ModelState.IsValid)
     {
         db.CalendarClassRooms.Add(cclassroom);
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(cclassroom));
 }
        public ActionResult Edit(CalendarClassRoom cclassroom)
        {
            if (ModelState.IsValid)
            {
                db.Entry(cclassroom).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(cclassroom));
        }