1
I have a Function that takes the values of my inputs, and I want to take the values of the variable for my method to perform the Insert. Does anyone have any tips on how to do this?
function insert_veiculo() {
var placa = $("#placa").val();
var quilometragem = $("#quilometragem").val();
var cor = $("#cor").val();
var tipo = $("#tipo").val();
var chassi = $("#chassi").val();
var ano = $("#ano").val();
var modelo = $("#modelo").val();
}
At the top Function, I take all the values of my inputs
And how do I handle this data in my dal? My DAL: http://i.imgur.com/Qetspnn.png
– Vinícius
What is in the given DAL? An external database? It always depends on the database that is, and how to insert the data...
– CesarMiguel
My idea would be, receive in my method the values of the variables JS and la, send to my DAL.
– Vinícius
But this is a different issue than published... To receive the values you already have the solution
– CesarMiguel
I apologize for my amateurism. It’s because I’m an app for college, and is being my cousin contact with Asp.net and c# and I came across this little "problem".
– Vinícius
No problem. As I told you, you already have the solution to pass the values to the controller, now to write to your DAL will depend on the database database you use...
– CesarMiguel
Let’s go continue this discussão in chat.
– Vinícius