diff --git a/samples/HelloMvc/Startup.cs b/samples/HelloMvc/Startup.cs index 12be6b73e0..50e6a3a50d 100644 --- a/samples/HelloMvc/Startup.cs +++ b/samples/HelloMvc/Startup.cs @@ -6,15 +6,15 @@ namespace HelloMvc { public class Startup { + public void ConfigureServices(IServiceCollection services) + { + services.AddMvc(); + } + public void Configure(IApplicationBuilder app) { app.UseErrorPage(); - app.UseServices(services => - { - services.AddMvc(); - }); - app.UseMvc(); app.UseWelcomePage();