public async Task <CompanyRestrictedWordDto> CreateRestrictedWord(CompanyRestrictedWordDto dto)
        {
            var entity = _mapper.Map <CompanyRestrictedWordEntity>(dto);

            entity = await _companySettingsRestrictedWordManager.Create(entity);

            return(_mapper.Map <CompanyRestrictedWordDto>(entity));
        }
        public async Task <CompanyRestrictedWordDto> UpdateRestrictedWord(long id, CompanyRestrictedWordDto dto)
        {
            var entity = await _companySettingsRestrictedWordManager.Find(id);

            if (entity == null)
            {
                return(null);
            }

            var newEntity = _mapper.Map(dto, entity);

            entity = await _companySettingsRestrictedWordManager.Update(newEntity);

            return(_mapper.Map <CompanyRestrictedWordDto>(entity));
        }