protected void UpdateAd(string adPath, int action)
    {
        //Set Active to false
        //When Payment is complete
        //Set Active to true
        ////////////////////Currently; providing regular compaing:Type 1/////////////////
        //If sponsorship arise in the feature, then will need to implement other adType
        const int adTypeID = 1;

        using (var context = new AdDatabaseModel.AdDatabaseEntities())

            try
            {
                context.UpdateNewAd(GetID(), GetAdID(), SiteDropDownList.SelectedIndex,
                                SectionDropDownList.SelectedIndex,
                                Convert.ToInt32(Admanagment.Helpers.Utility.GetPosition(PositionDropDownList.SelectedIndex)),
                                GetDestinationURL(),
                                FormatDropDownList.SelectedIndex,
                                adPath,
                                AlternativeText(),
                                GetKeywordString(),
                                Admanagment.Helpers.Utility.GetImpression(SpecialityListBox1, SpecialityListBox2, SpecialityListBox3),
                                GetCreativeWidth(FormatDropDownList.SelectedIndex),
                                GetCreativeHeight(FormatDropDownList.SelectedIndex),
                                GetStartDate(),
                                GetEndDate(),
                                false,
                                GetUserID(),
                                LanguageDropDownList.SelectedIndex,
                                GenderDropDownList.SelectedIndex,
                                AgeDropDownList.SelectedIndex,
                                Convert.ToInt32(CountryDropDownList.SelectedValue),
                                CountryDropDownList.SelectedItem.Text,
                                Convert.ToInt32(RegionsDropDownList.SelectedValue),
                                RegionsDropDownList.SelectedItem.Text,
                                CitiesDropDownList.SelectedIndex,
                                GetCityName(),
                                Admanagment.Helpers.Utility.GetZipcode(Convert.ToInt32(CountryDropDownList.SelectedValue), Convert.ToInt32(RegionsDropDownList.SelectedValue), GetCityName(), ZipcodeTextBox.Text),
                                IndustryDropDownList.SelectedIndex,
                                Admanagment.Helpers.Utility.GetProfession(SpecialityListBox1, SpecialityListBox2, SpecialityListBox3),
                                Convert.ToDateTime(DateTime.Now.ToString(CultureInfo.InvariantCulture)),
                                NewCampaingTextBox.Text,
                                adTypeID,
                                Admanagment.Helpers.Utility.GetCountryCode(Convert.ToInt32(CountryDropDownList.SelectedValue)),
                                Admanagment.Helpers.Utility.GetFlagPath(Convert.ToInt32(CountryDropDownList.SelectedValue)),
                                Admanagment.Helpers.Utility.GetProfessionID(SpecialityListBox1, SpecialityListBox2, SpecialityListBox3), action);
            }
            catch (Exception e)
            {

            }
    }