/// <summary> /// Получить критерии для поиска /// </summary> /// <returns></returns> public IEnumerable <SearchQueryCriteria <UserNotificationInteraction> > GetCriterias() { yield return(Read.MapNullable(value => new SearchQueryCriteria <UserNotificationInteraction>(x => x.ReadOn.HasValue == value))); yield return(CreatedOn.GetSearchCriteriaFromGenericRange <UserNotificationInteraction, DateTime>(x => x.CreatedOn)); yield return(UserId.MapString(str => new SearchQueryCriteria <UserNotificationInteraction>(x => x.UserId == str))); }