building a site on asp.net MVC with visual studio 2019 i am searching for a way to pass a model as a parameter to a javascript function, all answers i found online were as f