You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
687 B
30 lines
687 B
using Dto.Classe;
|
|
using Modele.Classe;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Dto.Factories
|
|
{
|
|
public static class PiloteFactorie
|
|
{
|
|
|
|
public static PiloteDTO ModeleToDTO(this Pilote pilote)
|
|
{
|
|
PiloteDTO piloteDTO = new PiloteDTO();
|
|
|
|
piloteDTO.Pseudo = pilote.Pseudo;
|
|
piloteDTO.Email = pilote.Email;
|
|
|
|
return piloteDTO;
|
|
}
|
|
|
|
public static Pilote DTOToModele(this PiloteDTO piloteDto)
|
|
{
|
|
return new Pilote(_Pseudo:piloteDto.Pseudo,_Email:piloteDto.Email,_Password:"Inconnu !");
|
|
}
|
|
}
|
|
}
|