If I want controller named differently, it's really hard today.
public class Home : ApiController
{
public string Get() { return "Hello"; }
}
Three different classes contain knowledge of the "Controller" suffix. If I instead want to use a prefix, different suffix, or no 'fix at all, it's really hard.
There should be one place that knows how to decide what's a valid controller and what is its name (not split across three).
public class Home : ApiController
{
public string Get() { return "Hello"; }
}
Three different classes contain knowledge of the "Controller" suffix. If I instead want to use a prefix, different suffix, or no 'fix at all, it's really hard.
There should be one place that knows how to decide what's a valid controller and what is its name (not split across three).