// // GET: /Tricker/Details/5 public ActionResult Details(int id = 0) { Tricker tricker = _db.Trickers.Find(id); if (tricker == null) { return(HttpNotFound()); } return(View(tricker)); }
public ActionResult Create(Tricker tricker) { if (ModelState.IsValid) { _db.Trickers.Add(tricker); _db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tricker)); }