public Person GetById(string id) { using (var handler = new PersonsHandler()) { var person = handler.GetById(id); if (person == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } return(person); } }