ardalis/OrganizingAspNetCore

Controller in one feature returns view from separate feature

Open

#6 opened on May 21, 2017

View on GitHub
 (2 comments) (0 reactions) (0 assignees)C# (58 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (210 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide