I must do the simple get request for GET method. Everything do such in internet exampl. Bad have a mistake
Cod of my js controller
var app = angular.module("appTradeRoom");
app.controller("EducationController", function ($scope, $http) {
$scope.user = {
email: '',
firstName: '',
lastName: '',
Password: '',
};
$scope.register = function (){
$http.get("/api/Education");
};
});
Cod of my API Controller
[Produces("application/json")]
[Route("api/Education")]
public class EducationController : Controller
{
[HttpGet]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Get()
{
return null;
}
}
I have a breakpoint on Get Method but it not go there. Maby something on startup?
All link i my website goes such this
http://localhost:51489/#!/education
I did it with method .success and did it with data such post method. Nothing. Mistake - bad request