23 lines
453 B
C#
23 lines
453 B
C#
using Microsoft.AspNet.Builder;
|
|
using Microsoft.AspNet.Routing;
|
|
using Microsoft.Framework.DependencyInjection;
|
|
|
|
namespace HelloMvc
|
|
{
|
|
public class Startup
|
|
{
|
|
public void Configure(IApplicationBuilder app)
|
|
{
|
|
app.UseErrorPage();
|
|
|
|
app.UseServices(services =>
|
|
{
|
|
services.AddMvc();
|
|
});
|
|
|
|
app.UseMvc();
|
|
|
|
app.UseWelcomePage();
|
|
}
|
|
}
|
|
} |