public async Task <IActionResult> GetExamById(Guid id) { var exam = await examService.FindById(id); if (exam == null) { return(NotFound()); } return(Ok(exam)); }