예제 #1
0
        /// <summary>
        /// Converts this instance of <see cref="users_acts"/> to an instance of <see cref="users_actsDTO"/>.
        /// </summary>
        /// <param name="entity"><see cref="users_acts"/> to convert.</param>
        public static users_actsDTO ToDTO(this users_acts entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new users_actsDTO();

            dto.id_user_act = entity.id_user_act;
            dto.id_act      = entity.id_act;
            dto.id_user     = entity.id_user;

            entity.OnDTO(dto);

            return(dto);
        }