Пример #1
0
 public void CreatSelectionModel(SelectionModel selection)
 {
     repo.CreatSelectionRepoMetier(new SelectionDto
     {
         FkBoissonDto       = selection.FkBoissonM,
         FkQuantiteSucreDto = selection.FkQuantiteSucreM,
         MugPersonDto       = selection.MugPersonM
     });
 }
Пример #2
0
        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);
        }