public void ChargerFoyer(Foyer FoyerSelectionner) { { ChargerFoyerQuery chargerFoyerQuerry = new ChargerFoyerQuery(FoyerSelectionner.Id, _utilisateur.Id); this.NewTask(() => { ChargerFoyerDTO result = _queryProcessor.Process <ChargerFoyerQuery, ChargerFoyerDTO>(chargerFoyerQuerry); return(result); }, (result) => { this.FoyerModelUi = new FoyerModelUI(result); }, (ex) => { throw ex; }); } }
public FoyerModelUI(ChargerFoyerDTO dto) { //Création d'un nouveau model a partir du DTO recu }