Importante

Você está vendo a versão anterior da nova experiência da Alura que estamos preparando para você. Em breve, ela ganha uma identidade visual novinha totalmente pensada em potencializar seus estudos!

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.