public void AddCategory(CompetitionCategory category) { if (_mCategories.Count(temp => temp.Id == category.Id) == 0) { _mCategories.Add(category); } }
public void RemoveCategory(CompetitionCategory category) { _mCategories.RemoveAll(temp => temp.Id == category.Id); }