Exemplo n.º 1
0
        // -------------------------------------------------------------------------------
        // AccountDelete
        // -------------------------------------------------------------------------------
        public bool AccountDelete(CAccount cAccount, bool hardDelete = false)
        {
            if (cAccount == null)
            {
                return(false);
            }

            if (hardDelete)
            {
                // Delete the account immediately
                return(databaseProvider.DeleteRows(DatabaseManager.tableAccounts, cAccount.sName).Result);
            }
            else
            {
                // Update the account and set 'deleted' to true
                return(databaseProvider.SaveAccount(cAccount.Save()).Result);
            }
        }
Exemplo n.º 2
0
 // -------------------------------------------------------------------------------
 // AccountSave
 // -------------------------------------------------------------------------------
 public bool AccountSave(CAccount cAccount)
 {
     return(databaseProvider.SaveAccount(cAccount.Save()).Result);
 }