public ActionResult DeleteConfirmed(int id)
        {
            Backskil backskil = db.Backskil.Find(id);

            db.Backskil.Remove(backskil);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Name")] Backskil backskil)
 {
     if (ModelState.IsValid)
     {
         db.Entry(backskil).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(backskil));
 }
        public ActionResult Create([Bind(Include = "Id,Name")] Backskil backskil)
        {
            if (ModelState.IsValid)
            {
                db.Backskil.Add(backskil);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(backskil));
        }
        // GET: Admin/Backskils/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Backskil backskil = db.Backskil.Find(id);

            if (backskil == null)
            {
                return(HttpNotFound());
            }
            return(View(backskil));
        }