public void CreateSelectionViewModel(ChoixBoissonSucreMugViewModel selection) { SelectionModel selectionModel = new SelectionModel { FkBoissonM = selection.Boisson.IdM, FkQuantiteSucreM = selection.Sucre.IdM, MugPersonM = selection.MugPerso }; selectionModel.CreatSelectionModel(selectionModel); }