Ejemplo n.º 1
0
 public void DeleteNotification(UserTextNotification notification)
 {
     try {
         notificationContext2.AttachTo(EntitySetName, notification,"*");
         notificationContext2.DeleteObject(notification);
         notificationContext2.SaveChanges();
     } catch {
     }
 }
Ejemplo n.º 2
0
 public void AddNotification(UserTextNotification notification)
 {
     try {
         notification.RowKey = Guid.NewGuid().ToString();
         notificationContext.AddObject(EntitySetName, notification);
         notificationContext.SaveChanges();
     } catch {
     }
 }