MvsMusicStore lession 2 Why does using both Browser Methods IN StroreController cause Exception in browser when mapping to either /Store/Browser or /Store/Browse?Genre=Disco

Jun 9, 2012 at 5:52 PM

Why does using both Browser Methods IN StroreController cause Exception in browser when mapping to either /Store/Browser or /Store/Browse?Genre=Disco.

If both Browser method are used in the StoreController class one can not map to either /Store/Browser or /Store/Browse?Genre=Disco

 

 

public string Browse()

 {

 

return "Hello from Store.Browse()";

}

 

 

// GET: /Store/Browse?genre=Disco

 public string Browse(string

genre)

{

 string message = HttpUtility.HtmlEncode("Store.Browse, Genre = "

+ genre);

 

return  message;

}

 

Coordinator
Jun 12, 2012 at 7:44 AM

Can you please give some information about what the exception was?