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