예제 #1
0
        //---------- 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);
        }
예제 #2
0
        public bool KeyGroupFull(int id)
        {
            _rep = new StaticListRepository();
            KeyGroupModel _kGroup = _rep.GetKeyGroupByID(id);

            if (_kGroup.MaxTeams > _kGroup.TotalTeams)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }