public void CreatSelectionRepoDonnes(SelectionDto selection) { SelectionDonnes selectionDonnes = new SelectionDonnes { FkBoisson = selection.FkBoissonDto, FkQuantiteSucre = selection.FkQuantiteSucreDto, MugPerson = selection.MugPersonDto }; selectionDonnes.CreatSelectionDonnes(selectionDonnes); }
public SelectionDto GetLastSelectionRepoDonnes() { var lastSelection = new SelectionDonnes().GetLastSelectionDonnes(); return(new SelectionDto { IdDto = lastSelection.Id, FkBoissonDto = lastSelection.FkBoisson, FkQuantiteSucreDto = lastSelection.FkQuantiteSucre, NomBoissonDto = lastSelection.NomBoisson, MugPersonDto = lastSelection.MugPerson, QuantitySucreDto = lastSelection.QuantitySucre }); }
public void CreatSelectionDonnes(SelectionDonnes selection) { context.CreatSelection(selection.FkQuantiteSucre, selection.MugPerson == true ? "oui" : "non", selection.FkBoisson); }