Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 private void UpdateStep(StepEditViewModel stepView, Step stepToUpdate)
 {
     stepToUpdate.Name = stepView.Name;
     stepToUpdate.Text = stepView.Text;
 }