Example #1
0
        public async Task <RuleExecutionLog> UpdateAsync(RuleExecutionLog ruleExecutionLog)
        {
            ruleExecutionLog.ExecutionDate = DateTime.UtcNow;
            this._db.RuleExecutionLogs.Update(ruleExecutionLog);
            await this._db.SaveChangesAsync();

            return(ruleExecutionLog);
        }
Example #2
0
        public async Task <RuleExecutionLog> AddAsync(RuleExecutionLog ruleExecutionLog)
        {
            ruleExecutionLog.ExecutionDate = DateTime.UtcNow;
            var result = this._db.Add(ruleExecutionLog);

            await this._db.SaveChangesAsync();

            return(result.Entity);
        }