public Group() { listClient = new List<GroupMember>(); listMessage = new List<Message>(); listResource = new List<Resource>(); type = new GroupType(); }
public List <Group> getGroupsByType(CarpoolingModel.Types.GroupType groupType) { List <Group> listTyGr = new List <Group>(); var groups = db.Groups.Where(s => s.groupType == groupType.Id); foreach (CarpoolingDAL.Group res in groups) { listTyGr.Add(RepositoryUtility.createGroupFromDALGroup(res as CarpoolingDAL.Group)); } return(listTyGr); }
internal static GroupType createGroupTypeFromDALGType(CarpoolingDAL.GroupType g) { GroupType ngt = new GroupType(g.idGroupType, g.name); return ngt; }
public Group(Route route, DateTime startTime, Range startRange, GroupType type, string name, Range destinationRange) : this(route, startTime, startRange, type) { this.name = name; this.destinationRange = destinationRange; }
public Group(Route route, DateTime startTime, Range startRange, GroupType type) : this(route,startTime) { this.startRange = startRange; this.type = type; }