Created
May 7, 2020 02:49
-
-
Save httpmurilo/d6b96641d45e5744e9e45606a6fba94e to your computer and use it in GitHub Desktop.
getPorId
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("{id}")] | |
public IActionResult RetornarClientePorId(int id) | |
{ | |
_context.Autores.ToList(); | |
return Ok (_context.Autores.Where(x => x.Id == id)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment