public ActionResult Create([Bind(Include = "Id,DocName,Path")] Document document) { if (ModelState.IsValid) { db.Documents.Add(document); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(document)); }
public ActionResult Create([Bind(Include = "Id,DocName,Path")] Document document) { if (ModelState.IsValid) { db.Documents.Add(document); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(document)); }