public ActionResult Create([Bind(Include = "Id,x,y")] DbDataPoint dbDataPoint) { if (ModelState.IsValid) { db.dbDataPoints.Add(dbDataPoint); db.SaveChanges(); InformationRequestHub.NotifyInformationRequestToClient(); return(RedirectToAction("Index")); } return(View(dbDataPoint)); }
// GET: DbDataPoints public ActionResult Index() { InformationRequestHub.NotifyInformationRequestToClient(); return(View(db.dbDataPoints.ToList())); }