示例#1
0
        public async Task <Job> AddOrUpdate(Job job)
        {
            JobEntity      entity    = job.Adapt <JobEntity>();
            TableOperation operation = TableOperation.InsertOrReplace(entity);
            TableResult    result    = await _table.ExecuteAsync(operation).ConfigureAwait(false);

            JobEntity storedEntity = (JobEntity)result.Result;

            return(storedEntity.Adapt <Job>());
        }