public async Task <IHttpActionResult> GetAsync(int id) { var result = await _logService?.GetAsync(id); if (result == null) { return(NotFound()); } return(Ok(result)); }