public ActionResult Create(DropFile dropfile) { if (ModelState.IsValid) { db.DropFiles.Add(dropfile); db.SaveChanges(); return RedirectToAction("Index"); } return View(dropfile); }
public ActionResult Edit(DropFile dropfile) { if (ModelState.IsValid) { db.Entry(dropfile).State = System.Data.EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(dropfile); }