Skip to content

Instantly share code, notes, and snippets.

@beyond-code-github
Last active August 29, 2015 14:27
Show Gist options
  • Save beyond-code-github/c3f88f173994e0623dcd to your computer and use it in GitHub Desktop.
Save beyond-code-github/c3f88f173994e0623dcd to your computer and use it in GitHub Desktop.
After refactoring, intent has simply been moved into the controller/model
public class TeachersController : ListController
{
protected override ListConfig Configuration
{
get
{
return new ListConfig()
{
ListTitle = "List of Teachers",
PostUrl = "api/teachers",
GetUrl = "api/teachers"
}
}
}
public TeachersController(ITeachersService teachersService) : this(teachersService)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment