public ActionResult PostClassRoom(ClassRoomEntity foo) { Facade proxy = new Facade(); ViewBag.ClassRooms = proxy.GetClassRooms(); proxy.InsertClassRoom(foo.Number, foo.Building, foo.Floor, foo.Capacity, foo.Description); return RedirectToAction("Index"); }
public ActionResult Index() { Facade proxy = new Facade(); var items = proxy.GetStudentsDistribution().ToList(); ViewBag.ClassRooms = proxy.GetClassRooms(); return View(items); }