public void CreatSelectionModel(SelectionModel selection)
 {
     repo.CreatSelectionRepoMetier(new SelectionDto
     {
         FkBoissonDto       = selection.FkBoissonM,
         FkQuantiteSucreDto = selection.FkQuantiteSucreM,
         MugPersonDto       = selection.MugPersonM
     });
 }
        public SelectionModel GetLastSelectionModel()
        {
            var            dernierSelection   = repo.GetLastSelectionRepoMetier();
            SelectionModel lastSelectionModel = new SelectionModel
            {
                IdM              = dernierSelection.IdDto,
                FkBoissonM       = dernierSelection.FkBoissonDto,
                FkQuantiteSucreM = dernierSelection.FkQuantiteSucreDto,
                NomBoissonM      = dernierSelection.NomBoissonDto,
                QuantitySucreM   = dernierSelection.QuantitySucreDto,
                MugPersonM       = dernierSelection.MugPersonDto
            };

            return(lastSelectionModel);
        }