public static string EncryptedKeys(SearchJourneyViewModel model)
        {
            var encryptor = new QueryStringEncryptor();

            encryptor["sessionId"]      = model.SessionId.ToString();
            encryptor["postcode"]       = !string.IsNullOrEmpty(model.CurrentPostcode) ? model.CurrentPostcode: string.Empty;
            encryptor["searchTerm"]     = model.SanitisedSearchTerm;
            encryptor["filterServices"] = model.FilterServices.ToString();
            encryptor["campaign"]       = !string.IsNullOrEmpty(model.Campaign) ? model.Campaign : string.Empty;
            encryptor["source"]         = !string.IsNullOrEmpty(model.Source) ? model.Source : string.Empty;
            encryptor["digitalTitle"]   = !string.IsNullOrEmpty(model.DigitalTitle) ? model.DigitalTitle : string.Empty;

            return(encryptor.ToString());
        }
        public static string EncryptedKeys(JustToBeSafeViewModel model)
        {
            var encryptor = new QueryStringEncryptor();

            encryptor["sessionId"]          = model.SessionId.ToString();
            encryptor["postcode"]           = !string.IsNullOrEmpty(model.CurrentPostcode) ? model.CurrentPostcode : string.Empty;
            encryptor["filterServices"]     = model.FilterServices.ToString();
            encryptor["campaign"]           = !string.IsNullOrEmpty(model.Campaign) ? model.Campaign : string.Empty;
            encryptor["source"]             = !string.IsNullOrEmpty(model.Source) ? model.Source : string.Empty;
            encryptor["digitalTitle"]       = !string.IsNullOrEmpty(model.DigitalTitle) ? model.DigitalTitle : string.Empty;
            encryptor["isCovidjourney"]     = model.IsCovidJourney.ToString();
            encryptor["viaGuidedSelection"] = model.ViaGuidedSelection.HasValue ? model.ViaGuidedSelection.Value.ToString() : string.Empty;
            encryptor["searchTerm"]         = !string.IsNullOrWhiteSpace(model.EntrySearchTerm) ? model.EntrySearchTerm : string.Empty;
            encryptor["startParameter"]     = !string.IsNullOrEmpty(model.StartParameter) ? model.StartParameter : string.Empty;

            return(encryptor.ToString());
        }