public int?GetLeagueOrCupId() { if (FilterByLeagueOrCupId == "-1") { return(null); } return(int.Parse(FilterByLeagueOrCupId.Substring(1, FilterByLeagueOrCupId.Length - 1))); }
public bool IsFilteredByCup() { return(FilterByLeagueOrCupId != "-1" && FilterByLeagueOrCupId.StartsWith(CupIdentifier)); }