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