Hi,
There is such a json method. How can I send this data to the controller section.
What can I use instead of frombody class. Because my infrastructure is not a net core
Json Method
async function callServer(url, data) {
const res = await fetch(url, {
method: "POST",
body: data ? JSON.stringify(data) : "",
headers: {
"Content-Type": "application/json",
},
});
return await res.json();
}
Controller
public ActionResult GoToConfirm([FormBody] )
{
}