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

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

            return(View(problema));
        }
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            problema problema = db.problema.Find(id);

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