コード例 #1
0
        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; });
            }
        }
コード例 #2
0
 public FoyerModelUI(ChargerFoyerDTO dto)
 {
     //Création d'un nouveau model a partir du DTO recu
 }