Exemplo n.º 1
0
 public IndexModel(IServiceProvider serviceProvider, ILogger <IndexModel> logger)
 {
     _serviceProvider = serviceProvider;
     _logger          = logger;
     _departmentStore = serviceProvider.GetService <IDepartmentStore>();
 }
Exemplo n.º 2
0
 public DepartmentManager(IDepartmentStore baseStore)
     : base(baseStore)
 {
     DepartmentStore = baseStore;
 }
Exemplo n.º 3
0
 public DepartmentController(IServiceProvider serviceProvider, ILogger <DepartmentController> logger)
 {
     _serviceProvider = serviceProvider;
     _logger          = logger;
     _departmentStore = serviceProvider.GetService <IDepartmentStore>();
 }