Skip to content

Commit 8373764

Browse files
committed
Merge pull request #398 from ChrisKlug/hellomvc-sample-update
HelloMvc sample update
2 parents 2bd951f + d295af5 commit 8373764

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

samples/HelloMvc/Startup.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ namespace HelloMvc
66
{
77
public class Startup
88
{
9+
public void ConfigureServices(IServiceCollection services)
10+
{
11+
services.AddMvc();
12+
}
13+
914
public void Configure(IApplicationBuilder app)
1015
{
1116
app.UseErrorPage();
1217

13-
app.UseServices(services =>
14-
{
15-
services.AddMvc();
16-
});
17-
1818
app.UseMvc();
1919

2020
app.UseWelcomePage();

0 commit comments

Comments
 (0)