I have problem with my query. I want to display the result on a view.
[HttpGet] [ValidateAntiForgeryToken] public async Task Index() {
From NuGet add System.Data.Common and System.Data.SqlClient. These allow ADO.NET commands to be run i.e. a stored procedure.
https://forums.asp.net/post/6061777.aspx