public IndexModel(IServiceProvider serviceProvider, ILogger <IndexModel> logger) { _serviceProvider = serviceProvider; _logger = logger; _departmentStore = serviceProvider.GetService <IDepartmentStore>(); }
public DepartmentManager(IDepartmentStore baseStore) : base(baseStore) { DepartmentStore = baseStore; }
public DepartmentController(IServiceProvider serviceProvider, ILogger <DepartmentController> logger) { _serviceProvider = serviceProvider; _logger = logger; _departmentStore = serviceProvider.GetService <IDepartmentStore>(); }