// Constructor with Constructor injection public InvestigationController(IInvestigationsRepository investigationsRepository, IReportRepository reportRepository, ILogger <InvestigationController> logger, UserManager <ApplicationUser> userManager) { _investigationRepository = investigationsRepository; _reportRepository = reportRepository; _logger = logger; _userManager = userManager; }
public InvestigationService(IInvestigationsRepository investigationsRepository, IInvestigationNotesRepository investigationNotesRepository) { _investigationsRepository = investigationsRepository; _notesRepository = investigationNotesRepository; }