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