Exemple #1
0
        public DepartamentQueryResult Handle(DepartamentQuery query)
        {
            ICollectionRead <Dept>  qryDataDept = new DepartamentoData();
            DepartamentQueryHandler qryHandler  = new DepartamentQueryHandler(qryDataDept);

            return(qryHandler.Handle(query));
        }
Exemple #2
0
        public void In_DepartamentQuery(DepartamentQuery query)
        {
            try
            {
                ICollectionRead <Dept>  qryDataDept = new DepartamentoData();
                DepartamentQueryHandler qryHandler  = new DepartamentQueryHandler(qryDataDept);

                Out_DepartamentQuery(qryHandler.Handle(query));
            }
            catch (Exception)
            {
                throw;
            }
        }