Exemplo n.º 1
0
        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"));
        }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
        // 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));
        }