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

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

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

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