public ActionResult Add(ClassRoomEditViewModel ClassRoom) { if (!ModelState.IsValid) { return(View()); } ClassRoom.SchoolID = 1; ClassRoomService.Add(ClassRoom); return(RedirectToAction("ClassRoom")); }