1
I have an access validation (Login/Password) that if true, should return to the home page, but return me the following error:
Invalidoperationexception: Renderbody Invocation in '/Views/Shared/_Layout.cshtml' is invalid. Renderbody can only be called from a page layout.
Follow Controller that checks and should return to view:
if (cli.ValidarAcesso(cli.CliCodigo, cli.CliSenhaWeb, _config) > 0)
{
return View("_Layout", new Clientes());
}