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