public async Task <IActionResult> Get(int id) { try { var inspection = await _repository.Get(id); return(Ok(inspection)); } catch (Exception e) { //Log error Log.Error(e.Message); Log.Error(e.StackTrace); return(BadRequest("An error ocurred, contact IT Staff")); } }