Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "Microsoft.AspNetCore.Mvc": "1.0.1",
- "Microsoft.AspNetCore.Razor.Tools": {
- "version": "1.0.0-preview2-final",
- "type": "build"
- }
- public void ConfigureServices(IServiceCollection services)
- {
- services.AddMvc();
- }
- public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
- {
- app.UseMvcWithDefaultRoute();
- }
- @using WebUI
- @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
- using Microsoft.AspNetCore.Mvc;
- namespace WebUI.Controllers
- {
- public class HomeController : Controller
- {
- public IActionResult Index()
- {
- return View();
- }
- public IActionResult MyAction()
- {
- return View();
- }
- }
- }
- @{
- Layout = null;
- }
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width" />
- <title>Index</title>
- </head>
- <body>
- <div>
- <a asp-action="MyAction">Go to my action</a>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement