Ejemplo n.º 1
0
        public List <ICharacterStoryArcModel> Search(ICharacterStoryArcSearchModel searchModel, bool asListing = false)
        {
            var results = CharacterStoryArcsRepository.Search(searchModel);

            return(asListing
                ? results.Select(CharacterStoryArcMapper.MapToModelListing).ToList()
                : results.Select(CharacterStoryArcMapper.MapToModelLite).ToList());
        }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<ICharacterStoryArc> SearchCommon(ICharacterStoryArcSearchModel searchModel, bool requireActive)
 {
     return Context.CharacterStoryArcs
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByPaging(searchModel.Paging);
 }
 public IEnumerable<ICharacterStoryArc> Search(ICharacterStoryArcSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 public IEnumerable<dynamic> Search(ICharacterStoryArcSearchModel searchModel, System.Func<ICharacterStoryArc, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <ICharacterStoryArc> SearchCommon(ICharacterStoryArcSearchModel searchModel, bool requireActive)
 {
     return(Context.CharacterStoryArcs
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByPaging(searchModel.Paging));
 }
 public IEnumerable <ICharacterStoryArc> Search(ICharacterStoryArcSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
 public IEnumerable <dynamic> Search(ICharacterStoryArcSearchModel searchModel, System.Func <ICharacterStoryArc, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }
 public List<ICharacterStoryArcModel> Search(ICharacterStoryArcSearchModel searchModel, bool asListing = false)
 {
     var results = CharacterStoryArcsRepository.Search(searchModel);
     return asListing
         ? results.Select(CharacterStoryArcMapper.MapToModelListing).ToList()
         : results.Select(CharacterStoryArcMapper.MapToModelLite).ToList();
 }