public IActionResult Get(int id)
        {
            IActionResult result = Unauthorized();

            try
            {
                var dto = MapToDTO(_db.GetClass(id));
                result = Ok(dto);
            }
            catch (Exception)
            {
                result = BadRequest(new { Message = "Get all classes failed." });
            }

            return(result);
        }