Up to 2023-10-22
parent
4021889c65
commit
2b2f60b4eb
|
@ -1,16 +1,13 @@
|
||||||
using System;
|
using System.Web.Mvc;
|
||||||
using System.Collections.Generic;
|
using MvcMusicStore.Data;
|
||||||
using System.Linq;
|
|
||||||
using System.Web;
|
|
||||||
using System.Web.Mvc;
|
|
||||||
|
|
||||||
namespace MvcMusicStore.Controllers
|
namespace MvcMusicStore.Controllers
|
||||||
{
|
{
|
||||||
public class HomeController : Controller
|
public class HomeController : Controller
|
||||||
{
|
{
|
||||||
public String Index()
|
public ActionResult Index()
|
||||||
{
|
{
|
||||||
return "I like cake!";
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ActionResult About()
|
public ActionResult About()
|
||||||
|
@ -26,5 +23,10 @@ namespace MvcMusicStore.Controllers
|
||||||
|
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//public ActionResult Search(string q)
|
||||||
|
//{
|
||||||
|
// var albums =
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
|
||||||
|
namespace MvcMusicStore.Models
|
||||||
|
{
|
||||||
|
public class AlbumEditViewModel
|
||||||
|
{
|
||||||
|
public Album AlbumToEdit { get; set; }
|
||||||
|
public System.Web.Mvc.SelectList Genres { get; set; }
|
||||||
|
public System.Web.Mvc.SelectList Artists { get; set; }
|
||||||
|
}
|
||||||
|
}
|
|
@ -134,6 +134,7 @@
|
||||||
<DependentUpon>Global.asax</DependentUpon>
|
<DependentUpon>Global.asax</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Models\Album.cs" />
|
<Compile Include="Models\Album.cs" />
|
||||||
|
<Compile Include="Models\AlbumEditViewModel.cs" />
|
||||||
<Compile Include="Models\Artist.cs" />
|
<Compile Include="Models\Artist.cs" />
|
||||||
<Compile Include="Models\Genre.cs" />
|
<Compile Include="Models\Genre.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
|
|
@ -29,3 +29,8 @@
|
||||||
<p><a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301867">Learn more »</a></p>
|
<p><a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301867">Learn more »</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<form action="/Home/Search" method="get">
|
||||||
|
<input type="text" name="q" />
|
||||||
|
<input type="submit" value="Search" />
|
||||||
|
</form>
|
Loading…
Reference in New Issue