コード例 #1
0
        ///-------------------------------------------------------------------------------------------------
        /// <summary>   Converts the given securityGroup. </summary>
        ///
        /// <param name="securityGroup"> The securityGroup. </param>
        ///
        /// <returns>   An orionSecurityGroupDto. </returns>
        ///-------------------------------------------------------------------------------------------------
        public OrionSecurityGroupDto Convert(OrionSecurityGroup securityGroup)
        {
            var orionSecurityGroupDto = new OrionSecurityGroupDto()
            {
                Id = securityGroup.Id,
                CreatedByUserId = securityGroup.CreatedByUserId,
                DateCreated     = securityGroup.DateCreated,
                Name            = securityGroup.Name
            };

            return(orionSecurityGroupDto);
        }
コード例 #2
0
        ///-------------------------------------------------------------------------------------------------
        /// <summary>   Converts the given securityGroup. </summary>
        ///
        /// <param name="dto">  The dto. </param>
        ///
        /// <returns>   An orionSecurityGroupDto. </returns>
        ///-------------------------------------------------------------------------------------------------
        public OrionSecurityGroup Convert(OrionSecurityGroupDto dto)
        {
            var orionSecurityGroup = new OrionSecurityGroup()
            {
                Id = dto.Id,
                CreatedByUserId = dto.CreatedByUserId,
                DateCreated     = dto.DateCreated,
                Name            = dto.Name
            };

            return(orionSecurityGroup);
        }