public bool Delete(string rowKey) { var existingNotification = GetByRowKey(rowKey); if (existingNotification != null) { context.DeleteObject(existingNotification); return true; } else return false; }
public bool RemoveExistingAccount(string rowKey) { bool retVal = false; using (INotificationRepository rep = new NotificationRepository()) { retVal = rep.Delete(rowKey); rep.SaveChanges(); } return retVal; }