Ejemplo n.º 1
0
 public void CreatSelectionMetier(SelectionMetier selection)
 {
     repo.CreatSelectionRepoDonnes(new SelectionDto
     {
         FkBoissonDto       = selection.FkBoisson,
         FkQuantiteSucreDto = selection.FkQuantiteSucre,
         MugPersonDto       = selection.MugPerson
     });
 }
Ejemplo n.º 2
0
        public void CreatSelectionRepoMetier(SelectionDto selection)
        {
            SelectionMetier selectionMetier = new SelectionMetier
            {
                FkBoisson       = selection.FkBoissonDto,
                FkQuantiteSucre = selection.FkQuantiteSucreDto,
                MugPerson       = selection.MugPersonDto
            };

            selectionMetier.CreatSelectionMetier(selectionMetier);
        }
Ejemplo n.º 3
0
        public SelectionDto GetLastSelectionRepoMetier()
        {
            var lastSelection = new SelectionMetier().GetLastSelectionMetier();

            return(new SelectionDto
            {
                IdDto = lastSelection.Id,
                FkBoissonDto = lastSelection.FkBoisson,
                FkQuantiteSucreDto = lastSelection.FkQuantiteSucre,
                NomBoissonDto = lastSelection.NomBoisson,
                MugPersonDto = lastSelection.MugPerson,
                QuantitySucreDto = lastSelection.QuantitySucre
            });
        }