Exemplo n.º 1
0
 // GET: RegisterCar/Create
 public ActionResult Create()
 {
     ViewBag.proveedores = carmodel.QueryProveedor();
     ViewBag.vehiculos   = carmodel.QueryTipoVehiculo();
     ViewBag.direcciones = carmodel.QueryDireccion();
     ViewBag.marcas      = carmodel.QueryMarcas();
     ViewBag.transmicion = carmodel.QueryTransmition();
     return(View());
 }
        public JsonResult tipovehiculo()
        {
            DataTable dttipovh = carmodel.QueryTipoVehiculo();

            return(Json(ConvertDatatableToJsonNative(dttipovh), JsonRequestBehavior.AllowGet));
        }