Getting a forum with id's works
This commit is contained in:
@@ -23,9 +23,14 @@ namespace WebApi.Controllers
|
||||
}
|
||||
|
||||
// GET api/<controller>/5
|
||||
public string Get(int id)
|
||||
public IHttpActionResult Get(int id)
|
||||
{
|
||||
return "value";
|
||||
var f = _foorumService.Get(id);
|
||||
if (f == null)
|
||||
{
|
||||
return NotFound();
|
||||
}
|
||||
return Ok(f);
|
||||
}
|
||||
|
||||
// POST api/<controller>
|
||||
|
||||
Reference in New Issue
Block a user