- Edit -
- } -- Create New -
diff --git a/samples/TagHelperSample.Web/Views/Movies/Index.cshtml b/samples/TagHelperSample.Web/Views/Movies/Index.cshtml deleted file mode 100644 index 80fe8db349..0000000000 --- a/samples/TagHelperSample.Web/Views/Movies/Index.cshtml +++ /dev/null @@ -1,43 +0,0 @@ - - - -Content visible to all browsers newer than Internet Explorer 7.
-Content visible only to Internet Explorer 7 users.
-foo is from fallback
"); -} \ No newline at end of file diff --git a/samples/TagHelperSample.Web/wwwroot/original.js b/samples/TagHelperSample.Web/wwwroot/original.js deleted file mode 100644 index 3097a25b25..0000000000 --- a/samples/TagHelperSample.Web/wwwroot/original.js +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -function foo() { - return 1; -} - -function bar() { - document.write("foo is available
"); -} \ No newline at end of file diff --git a/samples/TagHelperSample.Web/wwwroot/site.css b/samples/TagHelperSample.Web/wwwroot/site.css deleted file mode 100644 index e69a71c805..0000000000 --- a/samples/TagHelperSample.Web/wwwroot/site.css +++ /dev/null @@ -1,13 +0,0 @@ -meta.fallback-test { - visibility: hidden; -} - -body::after { - display: block; - color: #0fa912; - font-size: 0.9em; - margin-top: 2.4em; - content: "Stylesheet 'site.css' loaded successfully!"; -} - - diff --git a/samples/UrlHelperSample.Web/AppOptions.cs b/samples/UrlHelperSample.Web/AppOptions.cs deleted file mode 100644 index d155ee6b1d..0000000000 --- a/samples/UrlHelperSample.Web/AppOptions.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace UrlHelperSample.Web -{ - public class AppOptions - { - public bool ServeCDNContent { get; set; } - - public string CDNServerBaseUrl { get; set; } - - public bool GenerateLowercaseUrls { get; set; } - } -} \ No newline at end of file diff --git a/samples/UrlHelperSample.Web/Controllers/HomeController.cs b/samples/UrlHelperSample.Web/Controllers/HomeController.cs deleted file mode 100644 index 381944b14a..0000000000 --- a/samples/UrlHelperSample.Web/Controllers/HomeController.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Mvc; - -namespace UrlHelperSample.Web.Controllers -{ - public class HomeController : Controller - { - public IActionResult Index() - { - return View(); - } - - public string UrlContent() - { - return Url.Content("~/Bootstrap.min.css"); - } - - public string LinkByUrlAction() - { - return Url.Action("UrlContent", "Home", null); - } - - public string LinkByUrlRouteUrl() - { - return Url.RouteUrl("SimplePocoApi", new { id = 10 }); - } - } -} \ No newline at end of file diff --git a/samples/UrlHelperSample.Web/Controllers/SimplePocoController.cs b/samples/UrlHelperSample.Web/Controllers/SimplePocoController.cs deleted file mode 100644 index 11c2955bc9..0000000000 --- a/samples/UrlHelperSample.Web/Controllers/SimplePocoController.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.Routing; - -namespace UrlHelperSample.Web.Controllers -{ - [Route("api/[controller]/{id?}", Name = "SimplePocoApi")] - public class SimplePocoController - { - private readonly IUrlHelper _urlHelper; - - public SimplePocoController(IUrlHelper urlHelper) - { - _urlHelper = urlHelper; - } - - [HttpGet] - public string GetById(int id) - { - return "value:" + id; - } - } -} \ No newline at end of file diff --git a/samples/UrlHelperSample.Web/CustomUrlHelper.cs b/samples/UrlHelperSample.Web/CustomUrlHelper.cs deleted file mode 100644 index 7c7e699300..0000000000 --- a/samples/UrlHelperSample.Web/CustomUrlHelper.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.Routing; - -namespace UrlHelperSample.Web -{ - ///