// GET api/<controller>/5 public IHttpActionResult Get(int id) { var result = repo.FindbyId(id); if (result == null) { return(NotFound()); } return(Ok(result)); }