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