public IActionResult GetOpenPositions()
        {
            try {
                var    decodedToken = authentication.DecodeTokenFromRequest(Request.Headers["Authorization"]);
                string role         = authentication.GetRoleFromToken(decodedToken);
                int    id           = authentication.GetIDFromToken(decodedToken);

                if (role == "Club")
                {
                    List <JobPosition> opl = _clubLogic.GetOpenPositions(id);

                    if (opl != null)
                    {
                        return(Ok(opl));
                    }
                    else
                    {
                        return(StatusCode(404, "Resource not found"));
                    }
                }
                return(StatusCode(500, "Failed"));
            }
            catch (Exception) {
                return(StatusCode(500, "Failed"));
            }
        }