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);
        }
Example #2
0
        public static DAL.App.DTO.AppUserInPosition MapFromBLL(BLL.App.DTO.AppUserInPosition appUserInPosition)
        {
            var res = appUserInPosition == null ? null : new DAL.App.DTO.AppUserInPosition
            {
                Id                = appUserInPosition.Id,
                AppUserId         = appUserInPosition.AppUserId,
                AppUser           = AppUserMapper.MapFromBLL(appUserInPosition.AppUser),
                AppUserPositionId = appUserInPosition.AppUserPositionId,
                AppUserPosition   = AppUserPositionMapper.MapFromBLL(appUserInPosition.AppUserPosition),
                From              = appUserInPosition.From,
                Until             = appUserInPosition.Until
            };

            return(res);
        }