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