private ChoiceViewModel Transformer(ChoiceViewModel model, Choice answer) { model.ID = answer.ID; model.position = answer.position; model.text = answer.text; return(model); }
public Choice Transform(ChoiceViewModel model) { var answer = new Choice(); answer = Transformer(answer, model); return(answer); }
public ChoiceViewModel Transform(Choice answer) { var model = new ChoiceViewModel(); model = Transformer(model, answer); return(model); }
private Choice Transformer(Choice answer, ChoiceViewModel model) { answer.position = model.position; answer.text = model.text; return(answer); }