ModifyAsync() public method

Modifies an existing item
public ModifyAsync ( ListItem ItemToUpdate ) : Task
ItemToUpdate ListItem The item to udpate
return Task
        private async void btnProcess_Click(object sender, EventArgs e)
        {
            pictureBoxLoading.Visible = true;

            try
            {
                bool bResult = false;

                m_constructorClient = new ConstructorIOAPI(txtAPI.Text, txtKey.Text);
                ListItem createdItem = GetListItem();

                switch (m_sActionValue)
                {
                    case "Add":
                        bResult = await m_constructorClient.AddAsync(createdItem);
                        break;
                    case "Modify ( name of item )":
                        bResult = await m_constructorClient.ModifyAsync(createdItem);
                        break;
                    case "Delete":
                        bResult = await m_constructorClient.RemoveAsync(createdItem);
                        break;
                }

                if(bResult)
                {
                    MessageBox.Show("Success.");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            pictureBoxLoading.Visible = false;
        }