[ADD] ToModel Thematique

pull/24/head
Renaud BEURET 1 year ago
parent feee19a505
commit 3103fac98f

@ -0,0 +1,12 @@
package fr.iut.sciencequest.model.dto.extensions
import fr.iut.sciencequest.model.dto.ThematiqueDTO
import fr.iut.sciencequest.model.metier.Thematique
fun ThematiqueDTO.ToModel(): Thematique {
val model = Thematique(
id = this.id,
libelle = this.libelle
)
return model
}
Loading…
Cancel
Save