Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class HomeController : Controller
{
private readonly ICustomerService customerSvc;
public HomeController(ICustomerService customerService)
{
this.customerSvc = customerService;
}
public IActionResult Index()
{
List customersForTenant = new List();
var customers = this.customerSvc.GetAllCustomers();
// ... return results
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment