private void ValidateAbonementFitnessEvent(AbonementFitnessEventDto item)
        {
            if (item is null)
            {
                throw new ValidationException(StringRes.NullEntityMsg, new ArgumentNullException(nameof(item)));
            }

            if (_abonementFitnessEventEntityService.GetAll().Any(i => i.AbonementId == item.AbonementId && i.FitnessEventId == item.FitnessEventId))
            {
                throw new ValidationException(StringRes.AlreadyExistsMsg);
            }
        }
        public async Task UpdateAbonementFitnessEventAsync(AbonementFitnessEventDto item)
        {
            ValidateAbonementFitnessEvent(item);

            await _abonementFitnessEventEntityService.UpdateAsync(_mapper.Map <AbonementFitnessEvent>(item));
        }
        // ABONEMENTFITNESSEVENT
        public async Task <int> CreateAbonementFitnessEventAsync(AbonementFitnessEventDto item)
        {
            ValidateAbonementFitnessEvent(item);

            return(await _abonementFitnessEventEntityService.CreateAsync(_mapper.Map <AbonementFitnessEvent>(item)));
        }