Beispiel #1
0
 public IDataResult <List <City> > GetAll()
 {
     try
     {
         return(new SuccessDataResult <List <City> >(_cityDal.GetList()));
     }
     catch (Exception)
     {
         return(new ErrorDataResult <List <City> >(Messages.ErrorWhileGettingEntity));
     }
 }
 public List <City> GetList()
 {
     return(_cityDal.GetList());
 }
Beispiel #3
0
 public List <City> GetCities(Expression <Func <City, bool> > filter = null, Func <IQueryable <City>, IOrderedQueryable <City> > orderby = null, int skip = 0, int take = 10)
 {
     return(_cityDal.GetList(filter ?? (x => true), orderby ?? (m => m.OrderByDescending(k => k.Id)), skip, take));
 }
Beispiel #4
0
        public List <City> GetList()
        {
            List <City> cities = _cityDal.GetList();

            return(cities);
        }
Beispiel #5
0
 public List <cities> GetCities(int country_id)
 {
     return(_cityDal.GetList(x => x.country_id == country_id));
 }
Beispiel #6
0
        public List <City> GetCities()
        {
            var cities = _cityDal.GetList();

            return(cities);
        }