public List <IObjectStoryArcModel> Search(IObjectStoryArcSearchModel searchModel, bool asListing = false)
        {
            var results = ObjectStoryArcsRepository.Search(searchModel);

            return(asListing
                ? results.Select(ObjectStoryArcMapper.MapToModelListing).ToList()
                : results.Select(ObjectStoryArcMapper.MapToModelLite).ToList());
        }
 public List<IObjectStoryArcModel> Search(IObjectStoryArcSearchModel searchModel, bool asListing = false)
 {
     var results = ObjectStoryArcsRepository.Search(searchModel);
     return asListing
         ? results.Select(ObjectStoryArcMapper.MapToModelListing).ToList()
         : results.Select(ObjectStoryArcMapper.MapToModelLite).ToList();
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<IObjectStoryArc> SearchCommon(IObjectStoryArcSearchModel searchModel, bool requireActive)
 {
     return Context.ObjectStoryArcs
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByPaging(searchModel.Paging);
 }
 public IEnumerable<IObjectStoryArc> Search(IObjectStoryArcSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 public IEnumerable<dynamic> Search(IObjectStoryArcSearchModel searchModel, System.Func<IObjectStoryArc, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <IObjectStoryArc> SearchCommon(IObjectStoryArcSearchModel searchModel, bool requireActive)
 {
     return(Context.ObjectStoryArcs
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByPaging(searchModel.Paging));
 }
 public IEnumerable <IObjectStoryArc> Search(IObjectStoryArcSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
 public IEnumerable <dynamic> Search(IObjectStoryArcSearchModel searchModel, System.Func <IObjectStoryArc, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }