Пример #1
0
 public ActionResult UrlView( UrlViewModel viewModel )
 {
     return this.View( "url", viewModel );
 }
Пример #2
0
        public ActionResult UrlView()
        {
            var viewModel = new UrlViewModel()
            {
                Url = new Uri( "http://www.example.com?returnUrl=http%3a%2f%2fredirect.example.com%3ftest%3dtest", UriKind.Absolute ),
                UrlAsString = "http://www.example.com"
            };

            return this.View( "url", viewModel );
        }