Good luck getting this working after any .NET updates - I've adandoned .NET/MVC for Python/Flask now.
A simple .NET Core MVC example using the dotnetcoreDynamicJSON-RPC dynamic RPC wrapper class, which is intended to enable simple, dynamic wrapping of JSON RPC calls to Bitcoin, Elements, Liquid and other RPC enabled daemons.
Runs on Windows, Linux, Mac using the .NET Core cross-platform application framework.
Tested with Bitcoin (bitcoind) and Elements (elementsd) as target daemons.
Will also work with a Liquid node.
Please see the dotnetcoreDynamicJSON-RPC page on GitHub to learn how to use it and its JSON string helper classes in more detail.
Register the Microsoft key and feed by choosing the Linux distribution you are using from the dotnet download site. It will give you the code to run and will look similar to this:
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
Install the .NET SDK:
sudo add-apt-repository universe
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.1
git clone https://github.com/wintercooled/dotnetcoreDynamicJSON-RPC_MVCExample.git
cd dotnetcoreDynamicJSON-RPC_MVCExample
Amend ExampleController.cs and set the rpc details needed to connect to your Bitcoin/Elements/Liquid node etc.
dotnet run
Browse to https://localhost:5001/
You can go through and remove the extra views and controller actions (About, Contact etc.) that dotnet created if you like. I've left them in so that this example code is not that different to that used by Microsoft in their MVC tutorial.