Пример #1
0
        public async Task UpdateAsync(Resource resource)
        {
            await _repository.UpdateRecordAsync(resource.AsEntity(),
                                                r => r.Id == resource.Id && r.Version < resource.Version);

            await _repository.SaveAsync();
        }