public ActionResult DeleteConfirmed(string id) { V_PlayersWithStats v_PlayersWithStats = db.V_PlayersWithStats.Find(id); db.V_PlayersWithStats.Remove(v_PlayersWithStats); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "position,lastName,fName,team,pointsScored,passingTDs,passingYDs,passingINTs,rushingTDs,rushingYDs,receivingTDs,receivingYDs,receptions,fumblesLost,gamesPlayed")] V_PlayersWithStats v_PlayersWithStats) { if (ModelState.IsValid) { db.Entry(v_PlayersWithStats).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(v_PlayersWithStats)); }
// GET: V_PlayersWithStats/Edit/5 public ActionResult Edit(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } V_PlayersWithStats v_PlayersWithStats = db.V_PlayersWithStats.Find(id); if (v_PlayersWithStats == null) { return(HttpNotFound()); } return(View(v_PlayersWithStats)); }