Beispiel #1
0
        public GroupModel FindOne(int GroupID)
        {
            GroupRepository   _repo = new GroupRepository();
            List <GroupModel> Group = _repo.Groups(GroupID);

            this.ID   = Group[0].ID;
            this.Name = Group[0].Name;
            return(Group[0]);
        }
Beispiel #2
0
        public List <GroupModel> FindAll()
        {
            GroupRepository _repo = new GroupRepository();

            return(_repo.Groups());
        }