public ActionResult Create([Bind(Include = "PhotoID,Image,Title,Description,Type,Price")] NFL nFl, HttpPostedFileBase file) { if (ModelState.IsValid) { if (file != null) { SportsMemoribiliaStoreEntities db = new SportsMemoribiliaStoreEntities(); nFl.Image = new byte[file.ContentLength]; file.InputStream.Read(nFl.Image, 0, file.ContentLength); db.NFLs.Add(nFl); db.SaveChanges(); } } return(RedirectToAction("../NFLs")); }