public AssetsController(ILibraryAsset la, IBook assets, IVideo videos, IStatus stt, IWebHostEnvironment e, ILibraryBranchService branch) { _assets = assets; _videos = videos; _statuses = stt; he = e; _asset = la; _branch = branch; }
public BranchController(ILibraryBranchService branchService) { _branchService = branchService; }
public PatronController(IPatron patronService, ILibraryBranchService branch) { _patronService = patronService; _branch = branch; }
// create a constructor takes branchservice public BranchController(ILibraryBranchService branchService) { // save branchService param off into a private field // to have access in the rest of the controller _branchService = branchService; }
public HomeController(ILogger <HomeController> logger, ILibraryBranchService branchService) { _logger = logger; _branch = branchService; }
public BranchesController(ILibraryBranchService branch, IWebHostEnvironment e) { _branch = branch; he = e; }