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);
        }
Esempio n. 4
0
        public async Task <IActionResult> RetrieveRawData()
        {
            //Todo: Implement MerdiaTR
            GetCountriesCommand command = new GetCountriesCommand(_countryService, _countryRepository);
            await command.Execute();

            return(NoContent());
        }
Esempio n. 5
0
        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);
        }
Esempio n. 6
0
        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));
        }
Esempio n. 7
0
 public async Task <ICollection <CountriesDTO> > Handle(GetCountriesCommand request, CancellationToken cancellationToken)
 {
     return(_mapper.Map <ICollection <Country>, ICollection <CountriesDTO> >(await _unitOfWork.Location.GetCountries()));
 }