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