public static externalDTO.AppUserInPosition MapFromInternal(internalDTO.AppUserInPosition appUserInPosition) { var res = appUserInPosition == null ? null : new externalDTO.AppUserInPosition { Id = appUserInPosition.Id, AppUserId = appUserInPosition.AppUserId, AppUser = AppUserMapper.MapFromInternal(appUserInPosition.AppUser), AppUserPositionId = appUserInPosition.AppUserPositionId, AppUserPosition = AppUserPositionMapper.MapFromInternal(appUserInPosition.AppUserPosition), From = appUserInPosition.From, Until = appUserInPosition.Until }; return(res); }
public static externalDTO.AppUserOnObject MapFromInternal(internalDTO.AppUserOnObject appUserOnObject) { var res = appUserOnObject == null ? null : new externalDTO.AppUserOnObject { Id = appUserOnObject.Id, AppUserId = appUserOnObject.AppUserId, AppUser = AppUserMapper.MapFromInternal(appUserOnObject.AppUser), WorkObjectId = appUserOnObject.WorkObjectId, WorkObject = WorkObjectMapper.MapFromInternal(appUserOnObject.WorkObject), From = appUserOnObject.From, Until = appUserOnObject.Until }; return(res); }