Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.