Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [HttpPost]
- [ValidateAntiForgeryToken]
- public ActionResult Edit([Bind(Include = "Name,Notes")] Collection collection, int LanguageID)
- {
- if (ModelState.IsValid)
- {
- collection.Language = db.Languages.Find(LanguageID);
- db.Entry(collection).State = EntityState.Modified;
- db.SaveChanges();
- return RedirectToAction("Index");
- }
- return View(collection);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement