public List <BlogPost> GetBlogPosts(int userId) { using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(_helper.CnnVal("BlogAppDB"))) { var output = connection.Query <BlogPost>($"spBlog_GetBlogs @UserId", new { UserId = userId }).ToList(); return(output); } }