예제 #1
0
        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());
        }
예제 #3
0
        public List <UserManagementSystem.Entities.Country> GetAllCountries()
        {
            GetCountriesCommand getCountriesCommand = new GetCountriesCommand();

            getCountriesCommand.Execute();
            return(getCountriesCommand.CommandResult);
        }
예제 #4
0
        public async Task <IActionResult> RetrieveRawData()
        {
            //Todo: Implement MerdiaTR
            GetCountriesCommand command = new GetCountriesCommand(_countryService, _countryRepository);
            await command.Execute();

            return(NoContent());
        }
예제 #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);
        }
예제 #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));
        }