public void CreatSelectionMetier(SelectionMetier selection) { repo.CreatSelectionRepoDonnes(new SelectionDto { FkBoissonDto = selection.FkBoisson, FkQuantiteSucreDto = selection.FkQuantiteSucre, MugPersonDto = selection.MugPerson }); }
public void CreatSelectionRepoMetier(SelectionDto selection) { SelectionMetier selectionMetier = new SelectionMetier { FkBoisson = selection.FkBoissonDto, FkQuantiteSucre = selection.FkQuantiteSucreDto, MugPerson = selection.MugPersonDto }; selectionMetier.CreatSelectionMetier(selectionMetier); }
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 }); }