Form using ServerMethodsController

Hello, I'm trying to use a custom method:

public class ServerMethodsController : Controller
public IActionResult NewTestMethod(TestMethodModel a)
string r = a.ValueA + " " + a.ValueB;
//I want to store this fields in a 2 different DB tables
return Json(new { r });

But I do not understand how to post data from the angular form to method.

Can U help me?

Hi @Eugenio_Chiarello,

You can check the custom methods article which shows how to send data to custom methods.