Esempio n. 1
0
        /// <summary>
        /// Converts this instance of <see cref="obtenerpreciotarifarioResult"/> to an instance of <see cref="obtenerpreciotarifarioResultDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="obtenerpreciotarifarioResult"/> to convert.</param>
        public static obtenerpreciotarifarioResultDto ToDTO(this obtenerpreciotarifarioResult entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new obtenerpreciotarifarioResultDto();

            dto.v_ServiceId              = entity.v_ServiceId;
            dto.v_ProtocolId             = entity.v_ProtocolId;
            dto.v_EmployerOrganizationId = entity.v_EmployerOrganizationId;
            dto.v_Name = entity.v_Name;
            dto.v_IdentificationNumber = entity.v_IdentificationNumber;
            dto.i_IdListaPrecios       = entity.i_IdListaPrecios;
            dto.d_Precio         = entity.d_Precio;
            dto.i_IdLista        = entity.i_IdLista;
            dto.v_IdListaPrecios = entity.v_IdListaPrecios;

            entity.OnDTO(dto);

            return(dto);
        }