diff --git a/Controllers/ValuesController.cs b/Controllers/ValuesController.cs index c4287c5..8d0ae16 100644 --- a/Controllers/ValuesController.cs +++ b/Controllers/ValuesController.cs @@ -22,5 +22,19 @@ namespace TestApplication.Controllers { return await _context.Values.ToListAsync(); } + + [HttpGet("{id}")] + public async Task> GetValues_ById(int id) + { + var values = await _context.Values.FindAsync(id); + if(values != null) + { + return values; + } + else + { + return NotFound(); + } + } } } \ No newline at end of file