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

            selectionMetier.CreatSelectionMetier(selectionMetier);
        }
示例#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
            });
        }