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