public IHttpActionResult Get(string id) { if (string.IsNullOrEmpty(id)) { return(BadRequest()); } var log = _loggingRepository.Find(id); if (log == null) { return(NotFound()); } return(Ok(log)); }