private void OnLoaded()
        {
            Countries = new ObservableCollection <CountryExt>();
            Countries.CollectionChanged += Countries_CollectionChanged;

            foreach (var r in CountryServices.GetAll())
            {
                Countries.Add(new CountryExt
                {
                    ID          = r.ID,
                    CountryDesc = r.CountryDesc,
                    ModifiedOn  = r.ModifiedOn,
                    ModifiedBy  = r.ModifiedBy
                });
            }

            CollectionViewSource.GetDefaultView(Countries).Filter = CountryFilter;

            Countries = SequencingService.SetCollectionSequence(Countries);
            RaisePropertyChanged("Countries");
        }
Exemple #2
0
 public IEnumerable <CountryModel> GetAll(int id)
 {
     return(_service.GetAll(id));
 }
Exemple #3
0
 public async Task <ActionResult <IEnumerable <Country> > > GetCountries()
 {
     return(await services.GetAll());
 }
Exemple #4
0
        public IResponseDTO GetPage(int pageNumber = 0, int pageSize = 0)
        {
            var result = ServicesCountry.GetAll(pageNumber, pageSize);

            return(result);
        }
Exemple #5
0
 public List <CountryInfo> GetAll()
 {
     return(countryService.GetAll());
 }