public async Task UpdateResumeWorkHistory(ResumeWorkHistoryModel workHistory) { workHistory.UpdateTimestamps(false); using (var ct = GetConnection(DatabaseType.PEngine, false)) { await ct.DbConnection.ExecuteAsync(ReadQuery("UpdateResumeWorkHistory", ct.ProviderName), workHistory, transaction : ct.DbTransaction); } }
public async Task InsertResumeWorkHistory(ResumeWorkHistoryModel workHistory, bool importFlag = false) { workHistory.UpdateGuid(); workHistory.UpdateTimestamps(true, importFlag); using (var ct = GetConnection(DatabaseType.PEngine, false)) { await ct.DbConnection.ExecuteAsync(ReadQuery("InsertResumeWorkHistory", ct.ProviderName), workHistory, transaction : ct.DbTransaction); } }