Created storecontroller
parent
3d33db9415
commit
8a27860218
|
@ -8,9 +8,9 @@ namespace MvcMusicStore.Controllers
|
|||
{
|
||||
public class HomeController : Controller
|
||||
{
|
||||
public ActionResult Index()
|
||||
public String Index()
|
||||
{
|
||||
return View();
|
||||
return "I like cake!";
|
||||
}
|
||||
|
||||
public ActionResult About()
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace MvcMusicStore.Controllers
|
||||
{
|
||||
public class StoreController : Controller
|
||||
{
|
||||
// GET: Store
|
||||
public string Index()
|
||||
{
|
||||
return "Hello from Store.Index()";
|
||||
}
|
||||
//
|
||||
// GET: /Store/Browse
|
||||
public string Browse()
|
||||
{
|
||||
return "Hello from Store.Browse()";
|
||||
}
|
||||
//
|
||||
// GET: /Store/Details
|
||||
public string Details()
|
||||
{
|
||||
return "Hello from Store.Details()";
|
||||
}
|
||||
}
|
||||
}
|
|
@ -121,6 +121,7 @@
|
|||
<Compile Include="App_Start\FilterConfig.cs" />
|
||||
<Compile Include="App_Start\RouteConfig.cs" />
|
||||
<Compile Include="Controllers\HomeController.cs" />
|
||||
<Compile Include="Controllers\StoreController.cs" />
|
||||
<Compile Include="Global.asax.cs">
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
</Compile>
|
||||
|
@ -166,6 +167,7 @@
|
|||
<ItemGroup>
|
||||
<Folder Include="App_Data\" />
|
||||
<Folder Include="Models\" />
|
||||
<Folder Include="Views\Store\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="fonts\glyphicons-halflings-regular.woff2" />
|
||||
|
|
Loading…
Reference in New Issue