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