コード例 #1
0
        public virtual async Task UpdateAsync(BackgroundJobInfo jobInfo)
        {
            var backgroundJobRecord = await BackgroundJobRepository.FindAsync(jobInfo.Id);

            if (backgroundJobRecord == null)
            {
                return;
            }

            ObjectMapper.Map(jobInfo, backgroundJobRecord);
            await BackgroundJobRepository.UpdateAsync(backgroundJobRecord);
        }
コード例 #2
0
 public virtual async Task UpdateAsync(BackgroundJobInfo jobInfo)
 {
     await BackgroundJobRepository.UpdateAsync(
         ObjectMapper.Map <BackgroundJobInfo, BackgroundJobRecord>(jobInfo)
         );
 }