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"); }
public IEnumerable <CountryModel> GetAll(int id) { return(_service.GetAll(id)); }
public async Task <ActionResult <IEnumerable <Country> > > GetCountries() { return(await services.GetAll()); }
public IResponseDTO GetPage(int pageNumber = 0, int pageSize = 0) { var result = ServicesCountry.GetAll(pageNumber, pageSize); return(result); }
public List <CountryInfo> GetAll() { return(countryService.GetAll()); }