Пример #1
0
 public static ReponseDtoBO ToReponse(this PropositionDtoBO proposition)
 {
     return(new ReponseDtoBO
     {
         Id = proposition.Id,
         Reponse = proposition.Proposition,
         QuestionId = proposition.QuestionId
     });
 }
Пример #2
0
 public static Propositions ToEntity(this PropositionDtoBO dto)
 {
     return(new Propositions
     {
         Id = dto.Id,
         Proposition = dto.Proposition,
         IsCorrect = false,
         QuestionId = dto.QuestionId
     });
 }