Пример #1
0
        private static string GetSerialisedActionSettings(string actionName, string controllerName, RouteValueDictionary routeValues)
        {
            var actionSettings = new ActionSettings
            {
                ActionName     = actionName,
                ControllerName = controllerName,
                RouteValues    = routeValues
            };

            return(Serialiser.Serialise(actionSettings));
        }
Пример #2
0
        public string Serialise(ActionSettings actionSettings)
        {
            var serialisedActionSettings = _serialiser.Serialise(actionSettings);

            return(_encryptor.Encrypt(serialisedActionSettings));
        }