safaribook-professional-asp.../MvcMusicStore/Controllers/HomeController.cs

32 lines
623 B
C#
Raw Normal View History

2023-10-22 12:15:29 +11:00
using System.Web.Mvc;
using MvcMusicStore.Data;
namespace MvcMusicStore.Controllers
{
public class HomeController : Controller
{
2023-10-22 12:15:29 +11:00
public ActionResult Index()
{
2023-10-22 12:15:29 +11:00
return View();
}
public ActionResult About()
{
ViewBag.Message = "Your application description page.";
return View();
}
public ActionResult Contact()
{
ViewBag.Message = "Your contact page.";
return View();
}
2023-10-22 12:15:29 +11:00
//public ActionResult Search(string q)
//{
// var albums =
//}
}
}