Hello, I'm trying to use a custom method:
[Route("api/[controller]/[action]")]
public class ServerMethodsController : Controller
{
[HttpPost]
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?