public static internalDTO.Identity.AppUser MapFromDAL(externalDTO.Identity.AppUser appUser)
        {
            var res = appUser == null ? null : new internalDTO.Identity.AppUser
            {
                Id        = appUser.Id,
                FirstName = appUser.FirstName,
                LastName  = appUser.LastName,
            };

            return(res);
        }
Beispiel #2
0
        public static internalDTO.Identity.AppUser MapFromDAL(externalDTO.Identity.AppUser appUser)
        {
            var res = appUser == null ? null : new internalDTO.Identity.AppUser
            {
                Id          = appUser.Id,
                FirstName   = appUser.FirstName,
                LastName    = appUser.LastName,
                HiringDate  = appUser.HiringDate,
                LeftJob     = appUser.LeftJob,
                Email       = appUser.Email,
                PhoneNumber = appUser.PhoneNr
            };

            return(res);
        }
Beispiel #3
0
        public static externalDTO.AppUser MapFromDAL(internalDTO.AppUser appUser)
        {
            var res = appUser == null ? null : new BLL.App.DTO.Identity.AppUser
            {
                Id              = appUser.Id,
                FirstName       = appUser.FirstName,
                LastName        = appUser.LastName,
                SelfDescription = appUser.SelfDescription,
                HourlyRateId    = appUser.HourlyRateId,
                HourlyRate      = HourlyRateMapper.MapFromDAL(appUser.HourlyRate),
                Email           = appUser.Email
            };

            return(res);
        }