public List <Country> GetAllCountries() { GetCountriesCommand getCountriesCommand = new GetCountriesCommand(); getCountriesCommand.Execute(); return(getCountriesCommand.CommandResult); }
public void GetCountriesCommandCommandTest() { GetCountriesCommand GetCountriesCommand = CommandFactory.GetCountriesCommand(); GetCountriesCommand.Execute(); Assert.NotNull(GetCountriesCommand.GetResult()); }
public List <UserManagementSystem.Entities.Country> GetAllCountries() { GetCountriesCommand getCountriesCommand = new GetCountriesCommand(); getCountriesCommand.Execute(); return(getCountriesCommand.CommandResult); }
public async Task <IActionResult> RetrieveRawData() { //Todo: Implement MerdiaTR GetCountriesCommand command = new GetCountriesCommand(_countryService, _countryRepository); await command.Execute(); return(NoContent()); }
private INavigation _navigation; // HERE public UserViewModel(INavigation navigation) { _navigation = navigation; Setup(); UserRegInfo = new UserRegistrationPayload(); //{ first_name = "Mohd", last_name = "Riyaz", email = "*****@*****.**", mobileno = "0987654321", password = "******", city = "", address = "test road, test" }; _userDetails = new ObservableCollection <UserRegistrationRequest>(); UserListInfo = new UserRegistrationRequest(); GetCountriesCommand.Execute(null); //GetAllUsers.Execute(null); }
public ActionResult <IEnumerable <LocationDTO> > GetCountries() { LocationMapper locationMapper = MapperFactory.createLocationMapper(); GetCountriesCommand commandGetCountries = CommandFactory.GetCountriesCommand(); commandGetCountries.Execute(); var result = commandGetCountries.GetResult(); _logger?.LogInformation($"Obtenido los paises exitosamente"); return(locationMapper.CreateDTOList(result)); }