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

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

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

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