1
resposta

[Solved] Ok() and NotFound() methods don't work

Good afternoon guys,

I'm currently learning about API Rest in C# and even following what the teacher says, I can't use the IActionResult derivated method. Neither Ok(); nor NotFound();

Someone to help me? Thanks in advance.

1 resposta

I found the answer. It was happens because unfurtunally i've forget to sincronises the ControllerBase at my Main class.