25 lines
550 B
C#
25 lines
550 B
C#
using Microsoft.AspNet.Builder;
|
|
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(routes =>
|
|
{
|
|
routes.MapRoute("default", "{controller=Home}/{action=Index}/{id?}");
|
|
});
|
|
|
|
app.UseWelcomePage();
|
|
}
|
|
}
|
|
} |