public IHttpActionResult Select() { try { var values = service.Select() .ToList(); return(Ok(values)); } catch (UnauthorizedAccessException) { return(StatusCode(HttpStatusCode.Forbidden)); } }