Exemplo n.º 1
0
 public Task <int> SaveLogEntryAsync(Triplog logEntry)
 {
     if (logEntry.ID != 0)
     {
         return(Database.UpdateAsync(logEntry));
     }
     else
     {
         return(Database.InsertAsync(logEntry));
     }
 }
Exemplo n.º 2
0
 public Task <int> DeleteLogEntryAsync(Triplog logEntry)
 {
     return(Database.DeleteAsync(logEntry));
 }