public ActionResult DeleteConfirmed(int id) { Ref_Skill ref_Skill = db.Ref_Skills.Find(id); db.Ref_Skills.Remove(ref_Skill); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ID,Skill")] Ref_Skill ref_Skill) { if (ModelState.IsValid) { db.Entry(ref_Skill).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(ref_Skill)); }
public ActionResult Create([Bind(Include = "ID,Skill")] Ref_Skill ref_Skill) { if (ModelState.IsValid) { db.Ref_Skills.Add(ref_Skill); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(ref_Skill)); }
// GET: Ref_Skill/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Ref_Skill ref_Skill = db.Ref_Skills.Find(id); if (ref_Skill == null) { return(HttpNotFound()); } return(View(ref_Skill)); }