public NotificationsService(NotificationRepository notificationRepository, EmailService emailService) { _notificationRepository = notificationRepository; _emailService = emailService; }
public NotificationsController(NotificationRepository notificationRepository, UserRepository userRepository) { _notificationRepository = notificationRepository; _userRepository = userRepository; }
public static long GetUnreadNotificationCount(string userid) { var notificationRepository = new NotificationRepository(new GigbucketDbContext()); return notificationRepository.GetUnread(userid); }