protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { int languageId = int.Parse(e.CommandArgument.ToString()); TerritorySite.BL.CMS.Language thisLanguage = new TerritorySite.BL.CMS.Language(languageId); thisLanguage.RemoveLanguageFromCurrentAccount(); DoDataBind(); }
protected void Button1_Click(object sender, EventArgs e) { TerritorySite.BL.CMS.Language thisLanguage = new TerritorySite.BL.CMS.Language(int.Parse(DropDownListLanguages.SelectedValue)); thisLanguage.AddLanguageToCurrentAccount(); DoDataBind(); }