Esempio n. 1
0
        public static UserDTO Map(UserBO user, IZeus zeus)
        {
            UserDTO self = new UserDTO
            {
                UserId         = user.Id,
                Email          = user.Email,
                Username       = user.StaffUserName,
                FirstName      = user.FirstName,
                LastName       = user.LastName,
                MiddleName     = user.MiddleName,
                FullName       = user.FirstName + " " + user.LastName,
                JobDescription = user.JobDescription,
            };

            self.OrganizationId = user.OrganizationId;
            self.Roles          = StringConversion.ConvertToString(self.UserRoles);

            return(self);
        }