Exemplo n.º 1
0
 public HomeController(ILogger <HomeController> logger, BuscarPacoteHandle handler, ITrackingService tracking, AdicionarEmailHandle adicionarEmailHandle, DatabaseContext db)
 {
     _logger               = logger;
     _handler              = handler;
     _tracking             = tracking;
     _adicionarEmailHandle = adicionarEmailHandle;
     _db = db;
 }
Exemplo n.º 2
0
        public GenericQueryResult GetSpecificPackageId([FromServices] BuscarPacoteHandle _handle, Guid value)
        {
            BuscarPacoteQuery _query = new BuscarPacoteQuery(value);

            return((GenericQueryResult)_handle.Handle(_query));
        }