I have a layout that has several view components, all of them are using the same viewmodel and the controller
so how can I do to share the same viewmodel instance between all of them?
this is my layout:
<!DOCTYPE html>
<html lang="es">
<head prefix="og: http://ogp.me/ns#">
@await Component.InvokeAsync("Metadata", Share-Model)
</head>
<body>
@await Component.InvokeAsync("Header", Share-Model)
<article id="main-content-article">
@await Component.InvokeAsync("Cover", Share-Model)
</article>
<section id="rest-fold-content">
@RenderBody()
<footer id="main-footer">
@await Component.InvokeAsync("Footer")
</footer>
</section>
</body>
</html>