public List<UserType> GetAllUserTypes() { List<UserTypeBDO> userTypeBDOList = userLogic.GetAllUserTypes(); List<UserType> allUserTypes = new List<UserType>(); foreach (UserTypeBDO userTypeBDO in userTypeBDOList) { UserType userType = new UserType(); TranslateUserTypeBDOToUserTypeDTO(userTypeBDO, userType); allUserTypes.Add(userType); } return allUserTypes; }
public void TranslateUserTypeBDOToUserTypeDTO(UserTypeBDO userTypeBDO, UserType userType) { userType.UsersType = userTypeBDO.UsersType; userType.UserTypeCode = userTypeBDO.UserTypeCode; }