Example #1
0
 static public void UserEdited(INotificationModelService notificationModelService, ApplicationUser user)
 {
     notificationModelService.InsertNotificationModel(new NotificationModel
     {
         ApplicationGetterId = user,
         CreatedAt           = DateTime.Now,
         Message             = $"UserEdited"
     });
 }
Example #2
0
 static public void EvidenceEdited(INotificationModelService notificationModelService, CompromisingEvidenceModel evidence)
 {
     notificationModelService.InsertNotificationModel(new NotificationModel
     {
         ApplicationGetterId = evidence.UserId,
         CreatedAt           = DateTime.Now,
         Message             = $"EvidenceChanged"
     });
 }
Example #3
0
        static public void VoteProcessChanged(INotificationModelService notificationModelService, UserManager <ApplicationUser> userManager)
        {
            IList <ApplicationUser> users = userManager.Users.ToList();

            foreach (var user in users)
            {
                notificationModelService.InsertNotificationModel(new NotificationModel
                {
                    ApplicationGetterId = user,
                    CreatedAt           = DateTime.Now,
                    Message             = $"VoteProcessChanged"
                });
            }
        }