Skip to content

Instantly share code, notes, and snippets.

@explorer14
Created June 11, 2018 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save explorer14/df0b1dd56193dbe7d9a8e51e53319f4c to your computer and use it in GitHub Desktop.
Save explorer14/df0b1dd56193dbe7d9a8e51e53319f4c to your computer and use it in GitHub Desktop.
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