2021-06-22 12:23:19 +10:00
|
|
|
|
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()";
|
|
|
|
|
}
|
|
|
|
|
//
|
2021-06-22 13:14:44 +10:00
|
|
|
|
// GET: /Store/Browse?genre=?Disco
|
|
|
|
|
public string Browse(string genre)
|
2021-06-22 12:23:19 +10:00
|
|
|
|
{
|
2021-06-22 13:14:44 +10:00
|
|
|
|
string message = HttpUtility.HtmlEncode("Store.Browse, Genre is " + genre);
|
|
|
|
|
return message;
|
2021-06-22 12:23:19 +10:00
|
|
|
|
}
|
|
|
|
|
//
|
2021-06-22 13:14:44 +10:00
|
|
|
|
// GET: /Store/Details/5
|
|
|
|
|
public string Details(int id)
|
2021-06-22 12:23:19 +10:00
|
|
|
|
{
|
2021-06-22 13:14:44 +10:00
|
|
|
|
string message = "Store.Details, ID = " + id;
|
|
|
|
|
return message;
|
2021-06-22 12:23:19 +10:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|