示例#1
0
        public int Count(UserEntity UserEntity, SearchCityEntity SearchCityEntity)
        {
            if (SearchCityEntity == null)
            {
                SearchCityEntity = new SearchCityEntity();
            }
            IQueryable <City> Cities = CinemasEntities.Cities;

            Cities = SearchCityEntity.ApplyTo(Cities);
            return(Cities.Count());
        }
示例#2
0
        public List <CityEntity> Gets(UserEntity UserEntity, SearchCityEntity SearchCityEntity)
        {
            if (SearchCityEntity == null)
            {
                SearchCityEntity = new SearchCityEntity();
            }
            IQueryable <City> Cities = CinemasEntities.Cities;

            Cities = SearchCityEntity.ApplyTo(Cities);
            Cities = SearchCityEntity.SkipAndTake(Cities);
            return(Cities.ToList().Select(c => new CityEntity(c)).ToList());
        }
示例#3
0
 public List <CityEntity> Gets(SearchCityEntity SearchCityEntity)
 {
     return(CityService.Gets(UserEntity, SearchCityEntity));
 }
示例#4
0
 public int Count(SearchCityEntity SearchCityEntity)
 {
     return(CityService.Count(UserEntity, SearchCityEntity));
 }