I have several classes that facilitate CRUD, perform queries and act as single starting point for executing commands in my domain. Typically I will use the Controller class in Code-behind such as:
protected void Page_Load(object sender, EventArgs e)
{
var customerController = new CustomerController();
customerList.DataSource = customerController.GetAllCustomers();
}
Is there a more appropriate name that I should be using?
Description
Looks like your
CustomerControlleris a kind ofRepository.So i suggest the name
CustomerRepositoryMore Information