public IHttpActionResult GetPerson(int id) { var person = helper.GetPersonById(id); if (person != null) { return(Ok(person)); } else { return(NotFound()); } }