public List <ITeamStoryArcModel> Search(ITeamStoryArcSearchModel searchModel, bool asListing = false)
        {
            var results = TeamStoryArcsRepository.Search(searchModel);

            return(asListing
                ? results.Select(TeamStoryArcMapper.MapToModelListing).ToList()
                : results.Select(TeamStoryArcMapper.MapToModelLite).ToList());
        }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<ITeamStoryArc> SearchCommon(ITeamStoryArcSearchModel searchModel, bool requireActive)
 {
     return Context.TeamStoryArcs
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByPaging(searchModel.Paging);
 }
 public IEnumerable<ITeamStoryArc> Search(ITeamStoryArcSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 public IEnumerable<dynamic> Search(ITeamStoryArcSearchModel searchModel, System.Func<ITeamStoryArc, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <ITeamStoryArc> SearchCommon(ITeamStoryArcSearchModel searchModel, bool requireActive)
 {
     return(Context.TeamStoryArcs
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByPaging(searchModel.Paging));
 }
 public IEnumerable <ITeamStoryArc> Search(ITeamStoryArcSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
 public IEnumerable <dynamic> Search(ITeamStoryArcSearchModel searchModel, System.Func <ITeamStoryArc, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }
 public List<ITeamStoryArcModel> Search(ITeamStoryArcSearchModel searchModel, bool asListing = false)
 {
     var results = TeamStoryArcsRepository.Search(searchModel);
     return asListing
         ? results.Select(TeamStoryArcMapper.MapToModelListing).ToList()
         : results.Select(TeamStoryArcMapper.MapToModelLite).ToList();
 }