From 632f4095487a440a7b8c4f01a2a3aa522c2955c9 Mon Sep 17 00:00:00 2001 From: Lukas Gerbenis Date: Wed, 16 Sep 2015 11:03:15 +0300 Subject: [PATCH] #3 Moving Core.Web to vNext --- .../DefaultWebConfigurationLoader.cs | 13 ---------- .../DefaultWebConfigurationSection.cs | 19 ++------------ .../BaseActivationMethodAttribute.cs | 0 .../Environment/Application/BaseAttribute.cs | 0 .../Application/WebApplicationEntryPoint.cs | 0 .../WebApplicationHostAttribute.cs | 0 .../WebApplicationPreStartAttribute.cs | 0 .../WebApplicationPreStartManager.cs | 0 .../Assemblies/DefaultWebAssemblyManager.cs | 0 .../Host/DefaultWebApplicationAutoHost.cs | 0 .../Host/DefaultWebApplicationHost.cs | 0 .../Host/IWebApplicationAutoHost.cs | 0 .../Environment/Host/IWebApplicationHost.cs | 0 .../Environment/Host/UtilityHost.cs | 0 .../Host/RestartApplicationException.cs | 0 .../Extensions/AssemblyExtensions.cs | 0 .../Models/ComboWireJson.cs | 0 .../Models/UserMessages.cs | 0 .../Models/WireJson.cs | 0 .../Mvc/Commands/CoreCommandBase.cs | 0 .../Mvc/Commands/DefaultCommandResolver.cs | 0 .../Mvc/Commands/ICommand.cs | 0 .../Mvc/Commands/ICommandContext.cs | 0 .../Mvc/Commands/ICommandResolver.cs | 0 .../Mvc/CoreControllerBase.cs | 0 .../Mvc/DefaultWebControllerFactory.cs | 3 +-- .../Extensions/DefaultControllerExtensions.cs | 0 .../Mvc/Extensions/IControllerExtensions.cs | 0 .../Mvc/Extensions/ViewRenderingExtensions.cs | 2 +- .../Mvc/Extensions/VirtualPath.cs | 0 .../Mvc/IMessagesIndicator.cs | 0 .../Mvc/Routes/DefaultRouteTable.cs | 0 .../Mvc/Routes/IRouteTable.cs | 0 .../Mvc/Routes/RouteExtensions.cs | 0 .../Properties/AssemblyInfo.cs | 0 .../Security/DefaultWebPrincipalProvider.cs | 0 vNext/src/BetterModules.Core.Web/project.json | 26 ++++++++++--------- .../Controllers/HomeController.cs | 1 + 38 files changed, 19 insertions(+), 45 deletions(-) delete mode 100644 vNext/src/BetterModules.Core.Web/Configuration/DefaultWebConfigurationLoader.cs rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Environment/Application/BaseActivationMethodAttribute.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Environment/Application/BaseAttribute.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Environment/Application/WebApplicationEntryPoint.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Environment/Application/WebApplicationHostAttribute.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Environment/Application/WebApplicationPreStartAttribute.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Environment/Application/WebApplicationPreStartManager.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Environment/Assemblies/DefaultWebAssemblyManager.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Environment/Host/DefaultWebApplicationAutoHost.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Environment/Host/DefaultWebApplicationHost.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Environment/Host/IWebApplicationAutoHost.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Environment/Host/IWebApplicationHost.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Environment/Host/UtilityHost.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Exceptions/Host/RestartApplicationException.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Extensions/AssemblyExtensions.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Models/ComboWireJson.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Models/UserMessages.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Models/WireJson.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/Commands/CoreCommandBase.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/Commands/DefaultCommandResolver.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/Commands/ICommand.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/Commands/ICommandContext.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/Commands/ICommandResolver.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/CoreControllerBase.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/DefaultWebControllerFactory.cs (98%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/Extensions/DefaultControllerExtensions.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/Extensions/IControllerExtensions.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/Extensions/ViewRenderingExtensions.cs (98%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/Extensions/VirtualPath.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/IMessagesIndicator.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/Routes/DefaultRouteTable.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/Routes/IRouteTable.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Mvc/Routes/RouteExtensions.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Properties/AssemblyInfo.cs (100%) rename {BetterModules.Core.Web => vNext/src/BetterModules.Core.Web}/Security/DefaultWebPrincipalProvider.cs (100%) diff --git a/vNext/src/BetterModules.Core.Web/Configuration/DefaultWebConfigurationLoader.cs b/vNext/src/BetterModules.Core.Web/Configuration/DefaultWebConfigurationLoader.cs deleted file mode 100644 index 5e00da8..0000000 --- a/vNext/src/BetterModules.Core.Web/Configuration/DefaultWebConfigurationLoader.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System.Web.Configuration; -using BetterModules.Core.Configuration; - -namespace BetterModules.Core.Web.Configuration -{ - public class DefaultWebConfigurationLoader : DefaultConfigurationLoader - { - protected override System.Configuration.Configuration OpenApplicationConfiguration() - { - return WebConfigurationManager.OpenWebConfiguration("~/Web.config"); - } - } -} diff --git a/vNext/src/BetterModules.Core.Web/Configuration/DefaultWebConfigurationSection.cs b/vNext/src/BetterModules.Core.Web/Configuration/DefaultWebConfigurationSection.cs index 8d8bddf..9e81283 100644 --- a/vNext/src/BetterModules.Core.Web/Configuration/DefaultWebConfigurationSection.cs +++ b/vNext/src/BetterModules.Core.Web/Configuration/DefaultWebConfigurationSection.cs @@ -1,24 +1,9 @@ -using System; -using System.Configuration; -using BetterModules.Core.Configuration; +using BetterModules.Core.Configuration; namespace BetterModules.Core.Web.Configuration { public class DefaultWebConfigurationSection : DefaultConfigurationSection, IWebConfiguration { - private const string WebSiteUrlAttribute = "webSiteUrl"; - - /// - /// Gets or sets the web site URL. - /// - /// - /// The web site URL. - /// - [ConfigurationProperty(WebSiteUrlAttribute, DefaultValue = "Auto", IsRequired = false)] - public string WebSiteUrl - { - get { return Convert.ToString(this[WebSiteUrlAttribute]); } - set { this[WebSiteUrlAttribute] = value; } - } + public string WebSiteUrl { get; set; } } } diff --git a/BetterModules.Core.Web/Environment/Application/BaseActivationMethodAttribute.cs b/vNext/src/BetterModules.Core.Web/Environment/Application/BaseActivationMethodAttribute.cs similarity index 100% rename from BetterModules.Core.Web/Environment/Application/BaseActivationMethodAttribute.cs rename to vNext/src/BetterModules.Core.Web/Environment/Application/BaseActivationMethodAttribute.cs diff --git a/BetterModules.Core.Web/Environment/Application/BaseAttribute.cs b/vNext/src/BetterModules.Core.Web/Environment/Application/BaseAttribute.cs similarity index 100% rename from BetterModules.Core.Web/Environment/Application/BaseAttribute.cs rename to vNext/src/BetterModules.Core.Web/Environment/Application/BaseAttribute.cs diff --git a/BetterModules.Core.Web/Environment/Application/WebApplicationEntryPoint.cs b/vNext/src/BetterModules.Core.Web/Environment/Application/WebApplicationEntryPoint.cs similarity index 100% rename from BetterModules.Core.Web/Environment/Application/WebApplicationEntryPoint.cs rename to vNext/src/BetterModules.Core.Web/Environment/Application/WebApplicationEntryPoint.cs diff --git a/BetterModules.Core.Web/Environment/Application/WebApplicationHostAttribute.cs b/vNext/src/BetterModules.Core.Web/Environment/Application/WebApplicationHostAttribute.cs similarity index 100% rename from BetterModules.Core.Web/Environment/Application/WebApplicationHostAttribute.cs rename to vNext/src/BetterModules.Core.Web/Environment/Application/WebApplicationHostAttribute.cs diff --git a/BetterModules.Core.Web/Environment/Application/WebApplicationPreStartAttribute.cs b/vNext/src/BetterModules.Core.Web/Environment/Application/WebApplicationPreStartAttribute.cs similarity index 100% rename from BetterModules.Core.Web/Environment/Application/WebApplicationPreStartAttribute.cs rename to vNext/src/BetterModules.Core.Web/Environment/Application/WebApplicationPreStartAttribute.cs diff --git a/BetterModules.Core.Web/Environment/Application/WebApplicationPreStartManager.cs b/vNext/src/BetterModules.Core.Web/Environment/Application/WebApplicationPreStartManager.cs similarity index 100% rename from BetterModules.Core.Web/Environment/Application/WebApplicationPreStartManager.cs rename to vNext/src/BetterModules.Core.Web/Environment/Application/WebApplicationPreStartManager.cs diff --git a/BetterModules.Core.Web/Environment/Assemblies/DefaultWebAssemblyManager.cs b/vNext/src/BetterModules.Core.Web/Environment/Assemblies/DefaultWebAssemblyManager.cs similarity index 100% rename from BetterModules.Core.Web/Environment/Assemblies/DefaultWebAssemblyManager.cs rename to vNext/src/BetterModules.Core.Web/Environment/Assemblies/DefaultWebAssemblyManager.cs diff --git a/BetterModules.Core.Web/Environment/Host/DefaultWebApplicationAutoHost.cs b/vNext/src/BetterModules.Core.Web/Environment/Host/DefaultWebApplicationAutoHost.cs similarity index 100% rename from BetterModules.Core.Web/Environment/Host/DefaultWebApplicationAutoHost.cs rename to vNext/src/BetterModules.Core.Web/Environment/Host/DefaultWebApplicationAutoHost.cs diff --git a/BetterModules.Core.Web/Environment/Host/DefaultWebApplicationHost.cs b/vNext/src/BetterModules.Core.Web/Environment/Host/DefaultWebApplicationHost.cs similarity index 100% rename from BetterModules.Core.Web/Environment/Host/DefaultWebApplicationHost.cs rename to vNext/src/BetterModules.Core.Web/Environment/Host/DefaultWebApplicationHost.cs diff --git a/BetterModules.Core.Web/Environment/Host/IWebApplicationAutoHost.cs b/vNext/src/BetterModules.Core.Web/Environment/Host/IWebApplicationAutoHost.cs similarity index 100% rename from BetterModules.Core.Web/Environment/Host/IWebApplicationAutoHost.cs rename to vNext/src/BetterModules.Core.Web/Environment/Host/IWebApplicationAutoHost.cs diff --git a/BetterModules.Core.Web/Environment/Host/IWebApplicationHost.cs b/vNext/src/BetterModules.Core.Web/Environment/Host/IWebApplicationHost.cs similarity index 100% rename from BetterModules.Core.Web/Environment/Host/IWebApplicationHost.cs rename to vNext/src/BetterModules.Core.Web/Environment/Host/IWebApplicationHost.cs diff --git a/BetterModules.Core.Web/Environment/Host/UtilityHost.cs b/vNext/src/BetterModules.Core.Web/Environment/Host/UtilityHost.cs similarity index 100% rename from BetterModules.Core.Web/Environment/Host/UtilityHost.cs rename to vNext/src/BetterModules.Core.Web/Environment/Host/UtilityHost.cs diff --git a/BetterModules.Core.Web/Exceptions/Host/RestartApplicationException.cs b/vNext/src/BetterModules.Core.Web/Exceptions/Host/RestartApplicationException.cs similarity index 100% rename from BetterModules.Core.Web/Exceptions/Host/RestartApplicationException.cs rename to vNext/src/BetterModules.Core.Web/Exceptions/Host/RestartApplicationException.cs diff --git a/BetterModules.Core.Web/Extensions/AssemblyExtensions.cs b/vNext/src/BetterModules.Core.Web/Extensions/AssemblyExtensions.cs similarity index 100% rename from BetterModules.Core.Web/Extensions/AssemblyExtensions.cs rename to vNext/src/BetterModules.Core.Web/Extensions/AssemblyExtensions.cs diff --git a/BetterModules.Core.Web/Models/ComboWireJson.cs b/vNext/src/BetterModules.Core.Web/Models/ComboWireJson.cs similarity index 100% rename from BetterModules.Core.Web/Models/ComboWireJson.cs rename to vNext/src/BetterModules.Core.Web/Models/ComboWireJson.cs diff --git a/BetterModules.Core.Web/Models/UserMessages.cs b/vNext/src/BetterModules.Core.Web/Models/UserMessages.cs similarity index 100% rename from BetterModules.Core.Web/Models/UserMessages.cs rename to vNext/src/BetterModules.Core.Web/Models/UserMessages.cs diff --git a/BetterModules.Core.Web/Models/WireJson.cs b/vNext/src/BetterModules.Core.Web/Models/WireJson.cs similarity index 100% rename from BetterModules.Core.Web/Models/WireJson.cs rename to vNext/src/BetterModules.Core.Web/Models/WireJson.cs diff --git a/BetterModules.Core.Web/Mvc/Commands/CoreCommandBase.cs b/vNext/src/BetterModules.Core.Web/Mvc/Commands/CoreCommandBase.cs similarity index 100% rename from BetterModules.Core.Web/Mvc/Commands/CoreCommandBase.cs rename to vNext/src/BetterModules.Core.Web/Mvc/Commands/CoreCommandBase.cs diff --git a/BetterModules.Core.Web/Mvc/Commands/DefaultCommandResolver.cs b/vNext/src/BetterModules.Core.Web/Mvc/Commands/DefaultCommandResolver.cs similarity index 100% rename from BetterModules.Core.Web/Mvc/Commands/DefaultCommandResolver.cs rename to vNext/src/BetterModules.Core.Web/Mvc/Commands/DefaultCommandResolver.cs diff --git a/BetterModules.Core.Web/Mvc/Commands/ICommand.cs b/vNext/src/BetterModules.Core.Web/Mvc/Commands/ICommand.cs similarity index 100% rename from BetterModules.Core.Web/Mvc/Commands/ICommand.cs rename to vNext/src/BetterModules.Core.Web/Mvc/Commands/ICommand.cs diff --git a/BetterModules.Core.Web/Mvc/Commands/ICommandContext.cs b/vNext/src/BetterModules.Core.Web/Mvc/Commands/ICommandContext.cs similarity index 100% rename from BetterModules.Core.Web/Mvc/Commands/ICommandContext.cs rename to vNext/src/BetterModules.Core.Web/Mvc/Commands/ICommandContext.cs diff --git a/BetterModules.Core.Web/Mvc/Commands/ICommandResolver.cs b/vNext/src/BetterModules.Core.Web/Mvc/Commands/ICommandResolver.cs similarity index 100% rename from BetterModules.Core.Web/Mvc/Commands/ICommandResolver.cs rename to vNext/src/BetterModules.Core.Web/Mvc/Commands/ICommandResolver.cs diff --git a/BetterModules.Core.Web/Mvc/CoreControllerBase.cs b/vNext/src/BetterModules.Core.Web/Mvc/CoreControllerBase.cs similarity index 100% rename from BetterModules.Core.Web/Mvc/CoreControllerBase.cs rename to vNext/src/BetterModules.Core.Web/Mvc/CoreControllerBase.cs diff --git a/BetterModules.Core.Web/Mvc/DefaultWebControllerFactory.cs b/vNext/src/BetterModules.Core.Web/Mvc/DefaultWebControllerFactory.cs similarity index 98% rename from BetterModules.Core.Web/Mvc/DefaultWebControllerFactory.cs rename to vNext/src/BetterModules.Core.Web/Mvc/DefaultWebControllerFactory.cs index 55917a6..9946907 100644 --- a/BetterModules.Core.Web/Mvc/DefaultWebControllerFactory.cs +++ b/vNext/src/BetterModules.Core.Web/Mvc/DefaultWebControllerFactory.cs @@ -1,10 +1,9 @@ using System; using System.Web.Mvc; using System.Web.Routing; -using Autofac; -using Autofac.Features.Metadata; using BetterModules.Core.Web.Dependencies; using BetterModules.Core.Web.Mvc.Routes; +using Microsoft.AspNet.Mvc; namespace BetterModules.Core.Web.Mvc { diff --git a/BetterModules.Core.Web/Mvc/Extensions/DefaultControllerExtensions.cs b/vNext/src/BetterModules.Core.Web/Mvc/Extensions/DefaultControllerExtensions.cs similarity index 100% rename from BetterModules.Core.Web/Mvc/Extensions/DefaultControllerExtensions.cs rename to vNext/src/BetterModules.Core.Web/Mvc/Extensions/DefaultControllerExtensions.cs diff --git a/BetterModules.Core.Web/Mvc/Extensions/IControllerExtensions.cs b/vNext/src/BetterModules.Core.Web/Mvc/Extensions/IControllerExtensions.cs similarity index 100% rename from BetterModules.Core.Web/Mvc/Extensions/IControllerExtensions.cs rename to vNext/src/BetterModules.Core.Web/Mvc/Extensions/IControllerExtensions.cs diff --git a/BetterModules.Core.Web/Mvc/Extensions/ViewRenderingExtensions.cs b/vNext/src/BetterModules.Core.Web/Mvc/Extensions/ViewRenderingExtensions.cs similarity index 98% rename from BetterModules.Core.Web/Mvc/Extensions/ViewRenderingExtensions.cs rename to vNext/src/BetterModules.Core.Web/Mvc/Extensions/ViewRenderingExtensions.cs index db91c7d..f782a16 100644 --- a/BetterModules.Core.Web/Mvc/Extensions/ViewRenderingExtensions.cs +++ b/vNext/src/BetterModules.Core.Web/Mvc/Extensions/ViewRenderingExtensions.cs @@ -1,5 +1,5 @@ using System.IO; -using System.Web.Mvc; +using Microsoft.AspNet.Mvc; namespace BetterModules.Core.Web.Mvc.Extensions { diff --git a/BetterModules.Core.Web/Mvc/Extensions/VirtualPath.cs b/vNext/src/BetterModules.Core.Web/Mvc/Extensions/VirtualPath.cs similarity index 100% rename from BetterModules.Core.Web/Mvc/Extensions/VirtualPath.cs rename to vNext/src/BetterModules.Core.Web/Mvc/Extensions/VirtualPath.cs diff --git a/BetterModules.Core.Web/Mvc/IMessagesIndicator.cs b/vNext/src/BetterModules.Core.Web/Mvc/IMessagesIndicator.cs similarity index 100% rename from BetterModules.Core.Web/Mvc/IMessagesIndicator.cs rename to vNext/src/BetterModules.Core.Web/Mvc/IMessagesIndicator.cs diff --git a/BetterModules.Core.Web/Mvc/Routes/DefaultRouteTable.cs b/vNext/src/BetterModules.Core.Web/Mvc/Routes/DefaultRouteTable.cs similarity index 100% rename from BetterModules.Core.Web/Mvc/Routes/DefaultRouteTable.cs rename to vNext/src/BetterModules.Core.Web/Mvc/Routes/DefaultRouteTable.cs diff --git a/BetterModules.Core.Web/Mvc/Routes/IRouteTable.cs b/vNext/src/BetterModules.Core.Web/Mvc/Routes/IRouteTable.cs similarity index 100% rename from BetterModules.Core.Web/Mvc/Routes/IRouteTable.cs rename to vNext/src/BetterModules.Core.Web/Mvc/Routes/IRouteTable.cs diff --git a/BetterModules.Core.Web/Mvc/Routes/RouteExtensions.cs b/vNext/src/BetterModules.Core.Web/Mvc/Routes/RouteExtensions.cs similarity index 100% rename from BetterModules.Core.Web/Mvc/Routes/RouteExtensions.cs rename to vNext/src/BetterModules.Core.Web/Mvc/Routes/RouteExtensions.cs diff --git a/BetterModules.Core.Web/Properties/AssemblyInfo.cs b/vNext/src/BetterModules.Core.Web/Properties/AssemblyInfo.cs similarity index 100% rename from BetterModules.Core.Web/Properties/AssemblyInfo.cs rename to vNext/src/BetterModules.Core.Web/Properties/AssemblyInfo.cs diff --git a/BetterModules.Core.Web/Security/DefaultWebPrincipalProvider.cs b/vNext/src/BetterModules.Core.Web/Security/DefaultWebPrincipalProvider.cs similarity index 100% rename from BetterModules.Core.Web/Security/DefaultWebPrincipalProvider.cs rename to vNext/src/BetterModules.Core.Web/Security/DefaultWebPrincipalProvider.cs diff --git a/vNext/src/BetterModules.Core.Web/project.json b/vNext/src/BetterModules.Core.Web/project.json index 0ccbf58..12013a8 100644 --- a/vNext/src/BetterModules.Core.Web/project.json +++ b/vNext/src/BetterModules.Core.Web/project.json @@ -1,15 +1,17 @@ -{ - "version": "1.0.0-*", - "description": "", - "authors": [ "Devbridge" ], - "tags": [ "" ], - "projectUrl": "", - "licenseUrl": "", +{ + "version": "1.0.0-*", + "description": "", + "authors": [ "Devbridge" ], + "tags": [ "" ], + "projectUrl": "", + "licenseUrl": "", - "dependencies": { - }, + "dependencies": { + "BetterModules.Core": "1.0.0-*", + "Microsoft.AspNet.Mvc": "6.0.0-beta7" + }, - "frameworks" : { - "dnx451": { } - } + "frameworks": { + "dnx451": { } + } } diff --git a/vNext/src/BetterModules.Mvc6.Sandbox/Controllers/HomeController.cs b/vNext/src/BetterModules.Mvc6.Sandbox/Controllers/HomeController.cs index 7293bf8..302b2e1 100644 --- a/vNext/src/BetterModules.Mvc6.Sandbox/Controllers/HomeController.cs +++ b/vNext/src/BetterModules.Mvc6.Sandbox/Controllers/HomeController.cs @@ -1,4 +1,5 @@ using BetterModules.Sample.Module.Models; +using Microsoft.AspNet.Http; using Microsoft.AspNet.Mvc; namespace BetterModules.Mvc6.Sandbox.Controllers