Created
February 16, 2019 10:56
-
-
Save fugaku/c5f7e152afc80aa6bacca93ec250b552 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [HttpGet] | |
| public async Task<ActionResult<IEnumerable<Blog>>> GetBlogs() | |
| { | |
| var connection = _context.Database.GetDbConnection(); | |
| var data = await connection.QueryAsync<Blog>("SELECT * FROM Blogs"); | |
| return data.ToList(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment