public static IEnumerable <T> Of <T>(this IEnumerable <T> source, EntityContext entityContext) where T : IHasEntityContext { return(BaseFetchingHelper.ThatHas(source, x => x.EntityContext.Id == entityContext.Id)); }
public static IEnumerable <T> Enabled <T>(this IEnumerable <T> source, bool enabled = true) where T : IEnableable { return(BaseFetchingHelper.ThatHas(source, x => x.Enabled == enabled)); }