public List <GroupPO> GroupMap(List <GroupDAO> GroupListToMap) { List <GroupPO> GroupListToReturn = new List <GroupPO>(); foreach (GroupDAO GroupToMap in GroupListToMap) { GroupPO GroupToView = new GroupPO(); GroupToView.GroupID = GroupToMap.GroupID; GroupToView.GroupName = GroupToMap.GroupName; GroupToView.GroupLeader = GroupToMap.GroupLeader; GroupToView.GroupLeaderID = GroupToMap.GroupLeaderID; GroupToView.Description = GroupToMap.Description; GroupListToReturn.Add(GroupToView); } return(GroupListToReturn); }
public GroupViewModel() { SingleGroup = new GroupPO(); GroupList = new List <GroupPO>(); }