public EsfuerzoEstimadoDTO EsfuerzoEstimadoEntityToDTO(esfuerzo_estimado esfuerzoEstimadoEntity) { if (esfuerzoEstimadoEntity != null) { EsfuerzoEstimadoDTO esfuerzoEstimadoDTO = new EsfuerzoEstimadoDTO(); esfuerzoEstimadoDTO.id = esfuerzoEstimadoEntity.ID; esfuerzoEstimadoDTO.nombre = esfuerzoEstimadoEntity.nombre; esfuerzoEstimadoDTO.estadoVigente = esfuerzoEstimadoEntity.estado_vigente; esfuerzoEstimadoDTO.intensidad = esfuerzoEstimadoEntity.intensidad; return esfuerzoEstimadoDTO; } return null; }
public esfuerzo_estimado EsfuerzoEstimadoDTOToEntity(EsfuerzoEstimadoDTO esfuerzoEstimadoDTO) { if (esfuerzoEstimadoDTO != null) { esfuerzo_estimado esfuerzoEstimadoEntity = new esfuerzo_estimado(); esfuerzoEstimadoEntity.ID = esfuerzoEstimadoDTO.id; esfuerzoEstimadoEntity.nombre = esfuerzoEstimadoDTO.nombre; esfuerzoEstimadoEntity.estado_vigente = esfuerzoEstimadoDTO.estadoVigente; esfuerzoEstimadoEntity.intensidad = esfuerzoEstimadoDTO.intensidad; return esfuerzoEstimadoEntity; } return null; }