public Task <int> SaveCustomerAsync(Customer_Sqlite note) { if (Convert.ToString(note.id) != "0") { return(_database.UpdateAsync(note)); } else { return(_database.InsertAsync(note)); } }
public Task <int> DeleteCustomer(Customer_Sqlite note) { // _database.CreateTableAsync<Customer_Add>().Wait(); return(_database.DeleteAsync(note)); }