Skip to content

Commit b669cb8

Browse files
committed
Add a default controller
1 parent 314e589 commit b669cb8

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
7+
namespace WebApplication1.Controllers
8+
{
9+
public class DefaultController : Controller
10+
{
11+
// GET: Default
12+
public ActionResult Index()
13+
{
14+
return View();
15+
}
16+
}
17+
}

WebApplication1/WebApplication1/WebApplication1.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@
528528
<ItemGroup>
529529
<Compile Include="App_Start\ApplicationConfig.cs" />
530530
<Compile Include="App_Start\RouteConfig.cs" />
531+
<Compile Include="Controllers\DefaultController.cs" />
531532
<Compile Include="Global.asax.cs">
532533
<DependentUpon>Global.asax</DependentUpon>
533534
</Compile>
@@ -544,7 +545,6 @@
544545
</None>
545546
</ItemGroup>
546547
<ItemGroup>
547-
<Folder Include="Controllers\" />
548548
<Folder Include="Models\" />
549549
<Folder Include="Views\Default\" />
550550
</ItemGroup>

0 commit comments

Comments
 (0)