public ActionResult Index() { List <Mahasiswa> r; using (var s = new SimEntities()) { r = s.Mahasiswa.ToList(); } return(View(r)); }
public ActionResult Create_Post() { var model = new Mahasiswa(); TryUpdateModel(model); using (var s = new SimEntities()) { s.Mahasiswa.Add(model); s.SaveChanges(); } return(RedirectToAction("Index")); }
public void RemoveEntity(Simulation.Events.EventReceiver s) { SimEntities.Remove(s); }
public void AddEntity(Simulation.Events.EventReceiver s) { SimEntities.Add(s); }