public ActionResult ReTipo(regTipo newhabitacion)
        {
            if (ModelState.IsValid)
            {
            ConectorDataContext db = new ConectorDataContext();

            tipo ti = new tipo();

            // habi.idtipo = newhabitacion.nombre;

            //ti.nombre = newhabitacion.nombre;
            //ti.descripcion = newhabitacion.descripcion;
            //ti.precio = newhabitacion.precio;
            // db.tipos.InsertOnSubmit(ti);

            ti.nombre = newhabitacion.nombre;
            ti.dercripcion = newhabitacion.descri;
            ti.precio = Convert.ToDouble(newhabitacion.precio);
            db.tipos.InsertOnSubmit(ti);
            db.SubmitChanges();
            return Redirect("../habitaciones/mostrartipo");
            }
            return View();
        }
 partial void Updatetipo(tipo instance);
 partial void Deletetipo(tipo instance);
 partial void Inserttipo(tipo instance);