public ActionResult DeleteConfirmed(int id)
        {
            SkillBuildModel skillBuildModel = db.SkillBuildModels.Find(id);

            db.SkillBuildModels.Remove(skillBuildModel);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "id,Skill1Prio,Skill2Prio,Skill3Prio,UltiPrio")] SkillBuildModel skillBuildModel)
 {
     if (ModelState.IsValid)
     {
         db.Entry(skillBuildModel).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(skillBuildModel));
 }
        public ActionResult Create([Bind(Include = "id,Skill1Prio,Skill2Prio,Skill3Prio,UltiPrio")] SkillBuildModel skillBuildModel)
        {
            if (ModelState.IsValid)
            {
                db.SkillBuildModels.Add(skillBuildModel);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(skillBuildModel));
        }
        // GET: SkillBuildModels/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SkillBuildModel skillBuildModel = db.SkillBuildModels.Find(id);

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