public List <LocalizationViewModel> GetAll(string columnName, string searchString, Guid countryId)
        {
            List <Localization> entities;

            switch (columnName.ToLower())
            {
            case "localizationkey":
                entities = _repository.GetByLocalizationKey(searchString, countryId);
                break;

            case "localizationvalue":
                entities = _repository.GetByLocalizationValue(searchString, countryId);
                break;

            default:
                entities = _repository.GetAll(countryId);
                break;
            }

            if (entities == null)
            {
                throw new Exception(LOCALIZATION_LOCALIZATIONCLASS_NOT_FOUND);
            }

            return(LocalizationMapper.MapToLocalizationViewModel(entities));
        }