Merge pull request #398 from ChrisKlug/hellomvc-sample-update

HelloMvc sample update
This commit is contained in:
David Fowler 2015-03-25 18:40:09 -07:00
commit 8373764c61
1 changed files with 5 additions and 5 deletions

View File

@ -6,15 +6,15 @@ namespace HelloMvc
{ {
public class Startup public class Startup
{ {
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
}
public void Configure(IApplicationBuilder app) public void Configure(IApplicationBuilder app)
{ {
app.UseErrorPage(); app.UseErrorPage();
app.UseServices(services =>
{
services.AddMvc();
});
app.UseMvc(); app.UseMvc();
app.UseWelcomePage(); app.UseWelcomePage();