Ejemplo n.º 1
0
 public CountriesController(IGetCountriesCommand getCountries, IGetCountryCommand getCountry, IAddCountryCommand addCountry, IEditCountryCommand editCountry, IDeleteCountryCommand deleteCountry)
 {
     this.getCountries  = getCountries;
     this.getCountry    = getCountry;
     this.addCountry    = addCountry;
     this.editCountry   = editCountry;
     this.deleteCountry = deleteCountry;
 }
Ejemplo n.º 2
0
 public CountriesController(IGetCountriesCommand getCountries, IGetCountryCommand getCountry, IAddCountryCommand addCountry, IEditCountryCommand editCountry, IDeleteCountryCommand deleteCountry, UseCaseExecutor executor)
 {
     this.getCountries  = getCountries;
     this.getCountry    = getCountry;
     this.addCountry    = addCountry;
     this.editCountry   = editCountry;
     this.deleteCountry = deleteCountry;
     this.executor      = executor;
 }
Ejemplo n.º 3
0
 public Task <IActionResult> Get(
     [FromServices] IGetCountryCommand command,
     int countryId,
     CancellationToken cancellationToken) => command.ExecuteAsync(countryId, cancellationToken);