ardalis/OrganizingAspNetCore

Controller in one feature returns view from separate feature

Aperta

#6 aperta il 21 mag 2017

 (2 commenti) (0 reazioni) (0 assegnatari)C# (58 fork)github user discovery
bughelp wanted

Metriche repository

Star
 (210 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

The current version has two features:

  • Ninjas
  • Samurai

Each has a SwordsController with an Index.cshtml view inside of a Swords subfolder.

Going to /ninjas/swords hits the SwordsController in /Features/Ninjas and returns the expected View. Going to /samurai/swords hits the SwordsController in /Features/Samurai but returns the view from /Features/Ninjas/Swords/index.cshtml.

Guida contributor