public async Task <IActionResult> GetPracticeResult(int id) { try { var result = await service.GetPracticeResult(id); if (result != null) { return(Ok(result)); } else { return(NotFound()); } } catch (Exception ex) { logger.LogError(ex); throw ex; } }