private Step CreateStep(StepEditViewModel model) { Step step = new Step() { Index = model.Index, Name = model.Name, Text = model.Text, Image1 = model.Image1, Image2 = model.Image2, Image3 = model.Image3 }; return(step); }
private StepEditViewModel CreateStepViewModel(Step step) { StepEditViewModel stepView = new StepEditViewModel() { Id = step.Id, Index = step.Index, Name = step.Name, Text = step.Text, Image1 = step.Image1, Image2 = step.Image2, Image3 = step.Image3 }; return(stepView); }
private void UpdateStep(StepEditViewModel stepView, Step stepToUpdate) { stepToUpdate.Name = stepView.Name; stepToUpdate.Text = stepView.Text; }