public bool RemoveUserAlert(UserAlertsEntity userAlert) { try { var table = _tableClient.GetTableReference(Tables.UserAlerts); var deleteOperation = TableOperation.Delete(userAlert); table.Execute(deleteOperation); return(true); } catch (Exception e) { return(false); } }
public bool InsertUserAlert(UserAlertsEntity userAlert) { try { var table = _tableClient.GetTableReference(Tables.UserAlerts); var insertOperation = TableOperation.Insert(userAlert); table.Execute(insertOperation); return(true); } catch (Exception e) { return(false); } }