Ejemplo n.º 1
0
        public async Task AddOrUpdate(string id, UserDto user)
        {
            var item = await GetItemInternal(x => x.Id == id);
            if (item == null)
            {
                _items.Add(user);
            }
            else
            {
                user.CopyItem(item);
            }

            await SaveItems();
        }