public async Task <RuleExecutionLog> UpdateAsync(RuleExecutionLog ruleExecutionLog) { ruleExecutionLog.ExecutionDate = DateTime.UtcNow; this._db.RuleExecutionLogs.Update(ruleExecutionLog); await this._db.SaveChangesAsync(); return(ruleExecutionLog); }
public async Task <RuleExecutionLog> AddAsync(RuleExecutionLog ruleExecutionLog) { ruleExecutionLog.ExecutionDate = DateTime.UtcNow; var result = this._db.Add(ruleExecutionLog); await this._db.SaveChangesAsync(); return(result.Entity); }