diff --git a/samples/HelloMvc/Startup.cs b/samples/HelloMvc/Startup.cs index 12be6b73e0..69f15ff27f 100644 --- a/samples/HelloMvc/Startup.cs +++ b/samples/HelloMvc/Startup.cs @@ -6,18 +6,18 @@ 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(); - } + } } } \ No newline at end of file