public DepartamentQueryResult Handle(DepartamentQuery query) { ICollectionRead <Dept> qryDataDept = new DepartamentoData(); DepartamentQueryHandler qryHandler = new DepartamentQueryHandler(qryDataDept); return(qryHandler.Handle(query)); }
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; } }