public UsersFriendWithFilterCountSpecification(UserFriendSpecParams specParams)
     : base(f => f.UserEmail == specParams.UserEmail && f.FriendStatus == FriendStatus.Accepted &&
            string.IsNullOrEmpty(specParams.Search) || f.FriendEmail.ToLower().Contains(specParams.Search))
 {
 }
Example #2
0
 public UserFriendRequestCountFilterSpecification(UserFriendSpecParams specParams)
     : base(f => f.FriendEmail == specParams.UserEmail && f.FriendStatus == FriendStatus.Pending &&
            string.IsNullOrEmpty(specParams.Search) || f.UserEmail.ToLower().Contains(specParams.Search))
 {
 }
Example #3
0
 public UserListWithFilterSpecification(UserFriendSpecParams specParams)
     : base(f => f.UserEmail == specParams.UserEmail && f.FriendStatus == FriendStatus.Accepted &&
            string.IsNullOrEmpty(specParams.Search) || f.FriendEmail.ToLower().Contains(specParams.Search))
 {
     ApplyPaging(specParams.PageSize * (specParams.PageIndex - 1), specParams.PageSize);
 }
 public ListFriendRequestSpecification(UserFriendSpecParams specParams)
     : base(f => f.FriendEmail == specParams.UserEmail && f.FriendStatus == FriendStatus.Pending &&
            string.IsNullOrEmpty(specParams.Search) || f.UserEmail.ToLower().Contains(specParams.Search))
 {
     ApplyPaging(specParams.PageSize * (specParams.PageIndex - 1), specParams.PageSize);
 }