Exemplo n.º 1
0
        public static SiteSettingRedirectViewModel ToServiceModel(this SaveRedirectModel model)
        {
            var serviceModel = new SiteSettingRedirectViewModel();

            serviceModel.Version     = model.Version;
            serviceModel.PageUrl     = model.PageUrl;
            serviceModel.RedirectUrl = model.RedirectUrl;

            return(serviceModel);
        }
Exemplo n.º 2
0
        private static SaveRedirectModel MapModel(GetRedirectResponse response)
        {
            var model = new SaveRedirectModel
            {
                Version     = response.Data.Version,
                PageUrl     = response.Data.PageUrl,
                RedirectUrl = response.Data.RedirectUrl,
            };

            return(model);
        }