Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }