public void UpdateCurriculumStatment(CurriculumStatement statement, IList<Role> rolesList, int id)
        {
            if (id != 0)
            {
                statement.Id = id;
                _curriculumStatementRepository.Update(statement, id);

                var tempStatement = _curriculumStatementRepository.GetById(id);

                if (tempStatement == null)
                {
                    return;
                }

                foreach (var rolee in rolesList)
                {
                    if (!_statementRolesRepository.GetMany(s => s.CurriculumStatementId == tempStatement.Id && s.Role == rolee).Any())
                    {
                        _statementRolesRepository.Add(new StatementRoles()
                        {
                            Role = rolee,
                            Statement = tempStatement,
                            CurriculumStatementId = tempStatement.Id
                        });
                    }
                }
                _statementRolesRepository.Delete(s => s.CurriculumStatementId == tempStatement.Id && !rolesList.Contains(s.Role));
            }
        }
        public void AddCurricululmStatment(CurriculumStatement statement, IList<Role> rolesList, int clubId)
        {
            statement.Club = _clubRepository.GetById(clubId);
            var newStatment = _curriculumStatementRepository.Add(statement);

            if (newStatment != null)
            {
                foreach (var role in rolesList)
                {
                    _statementRolesRepository.Add(new StatementRoles()
                    {
                        Role = role,
                        Statement = newStatment,
                        CurriculumStatementId = newStatment.Id
                    });
                }
            }
        }