public IActionResult Delete(int id) { Exam deletedExam = _examManager.DeleteExam(id); if (deletedExam == null) { return(NotFound()); } ExamResponse response = Mapper.Map <Exam, ExamResponse>(deletedExam); return(Ok(response)); }