Ejemplo n.º 1
0
 public bool Guardar(Modelos.M_Clients Client)
 {
     try
     {
         Client.SharedKey = null;
         Coleccion.InsertOne(Client);
         return(true);
     }
     catch (Exception ex)
     {
         Registros(ex);
         return(false);
     }
 }
Ejemplo n.º 2
0
 public bool Actualizar(Modelos.M_Clients Client)
 {
     try
     {
         if (Eliminar(Client.SharedKey))
         {
             Client.SharedKey = null;
             return(Guardar(Client));
         }
         return(false);
     }
     catch (Exception ex)
     {
         Registros(ex);
         return(false);
     }
 }