Beispiel #1
0
 public void ReadNotification([FromBody] ReadNotificationRequest request)
 {
     LogsDataManager.SendLog(
         request.PatronId,
         "Patron",
         "read notification with id " + request.Id);
     NotificationsDataManager.ReadNotification(request.Id);
 }
Beispiel #2
0
 public bool ReadNotification(ReadNotificationRequest readRequest)
 {
     using (DataAccess dataAccess = new DataAccess())
     {
         var selectedNotf = dataAccess.Notifications.Where(x => x.NotfID == readRequest.NotfID).FirstOrDefault <Notification>();
         selectedNotf.ReadID = true;
         dataAccess.Notifications.Update(selectedNotf);
         return(dataAccess.SaveChanges() > 0);
     }
 }
Beispiel #3
0
 public bool ReadNotification(ReadNotificationRequest readNotification)
 {
     return(notificationService.ReadNotification(readNotification));
 }