When attempting to send data from Angular to .Net, I am encountering an issue where the breakpoint in the Controller C# is not being hit. Do I need to make any additional configurations? Previously, I have successfully sent data in this manner in Angular 8 and it was functional.
C#
public class UpdateViewModel
{
public int Id { get; set; }
public string Title { get; set; }
}
[HttpPost]
[Route("delete")]
public void Delete(UpdateViewModel model)
{
//return Ok();
}
TypeScript
var model = {
Id: 1,
Title: 'test'
}
return this.http.post(this.baseURL + "home/delete/", model)
.pipe(
retry(1),
catchError(this.errorHandler)
);