//---------- METHODS KEY-G ----------// public List <KeyGroupModel> GetAll() { _rep = new StaticListRepository(); List <KeyGroupModel> ListaTodos = _rep.GetKeyGroups(); List <KeyGroupModel> _returo = ListaTodos.OrderBy(x => x.Name).ToList(); return(_returo); }
public bool KeyGroupFull(int id) { _rep = new StaticListRepository(); KeyGroupModel _kGroup = _rep.GetKeyGroupByID(id); if (_kGroup.MaxTeams > _kGroup.TotalTeams) { return(false); } else { return(true); } }