public ActionResult DeleteConfirmed(int id) { LangProficiencyLevel langProficiencyLevel = db.LangProficiencyLevels.Find(id); db.LangProficiencyLevels.Remove(langProficiencyLevel); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ID,Level,DomainID")] LangProficiencyLevel langProficiencyLevel) { if (ModelState.IsValid) { db.Entry(langProficiencyLevel).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.DomainID = new SelectList(db.Domains, "ID", "Name", langProficiencyLevel.DomainID); return(View(langProficiencyLevel)); }
public ActionResult Create([Bind(Include = "ID,Level,DomainID")] LangProficiencyLevel langProficiencyLevel) { if (ModelState.IsValid) { db.LangProficiencyLevels.Add(langProficiencyLevel); db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.DomainID = new SelectList(db.Domains, "ID", "Name", langProficiencyLevel.DomainID); return(View(langProficiencyLevel)); }
// GET: LangProficiencyLevels/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } LangProficiencyLevel langProficiencyLevel = db.LangProficiencyLevels.Find(id); if (langProficiencyLevel == null) { return(HttpNotFound()); } return(View(langProficiencyLevel)); }
// GET: LangProficiencyLevels/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } LangProficiencyLevel langProficiencyLevel = db.LangProficiencyLevels.Find(id); if (langProficiencyLevel == null) { return(HttpNotFound()); } ViewBag.DomainID = new SelectList(db.Domains, "ID", "Name", langProficiencyLevel.DomainID); return(View(langProficiencyLevel)); }