public string PopulateProps(string idSport, string LeagueID) { try { PinniAppi AppPinni = new PinniAppi(); ObservableCollection <csSocProp> PropList = AppPinni.LoadSoccerProps("", LeagueID, idSport); if (PropList != null && PropList.Count > 0) { foreach (var i in PropList) { if (!AppPinni.SaveProp(i)) { return("N"); } } } else { return("N"); } } catch (Exception) { return("N"); } return("Y"); }
protected void PopulateInfo(object sender, EventArgs e) { if (PropList != null && canPopulate) { foreach (var i in PropList) { AppPinni.SaveProp(i); } } canPopulate = false; btnPopulate.Visible = false; }