public DashboardController(BeachBuddyContext context, IBeachBuddyRepository beachBuddyRepository, IMapper mapper, IWeatherService weatherService, INotificationService notificationService, IHostApplicationLifetime appLifetime, ILogger <DashboardController> logger) { _context = context; _beachBuddyRepository = beachBuddyRepository ?? throw new ArgumentNullException(nameof(beachBuddyRepository)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _weatherService = weatherService; _notificationService = notificationService; _appLifetime = appLifetime; _logger = logger; }
public BeachBuddyRepository(BeachBuddyContext buddyContext) { _context = buddyContext ?? throw new ArgumentNullException(nameof(buddyContext)); }