Ejemplo n.º 1
0
 public static ReponseDtoBO ToReponse(this PropositionDtoBO proposition)
 {
     return(new ReponseDtoBO
     {
         Id = proposition.Id,
         Reponse = proposition.Proposition,
         QuestionId = proposition.QuestionId
     });
 }
Ejemplo n.º 2
0
 public static Propositions ToEntity(this PropositionDtoBO dto)
 {
     return(new Propositions
     {
         Id = dto.Id,
         Proposition = dto.Proposition,
         IsCorrect = false,
         QuestionId = dto.QuestionId
     });
 }