public ActionResult <TestForProfessorDTO> GetTestForProffessor(int id) { try { return(Ok(_testsRepository.GetTestForProfessor(id))); } catch (Exception e) { return(BadRequest(e)); } }