14 lines
307 B
C#
14 lines
307 B
C#
using Ardalis.Specification;
|
|
using BeReadyBackend.Models;
|
|
|
|
namespace BeReadyBackend.Specifications.Posts;
|
|
|
|
public class GetPostNotMeSpec : Specification<Post>
|
|
{
|
|
public GetPostNotMeSpec(int userId)
|
|
{
|
|
Query
|
|
.Include(x => x.User)
|
|
.Where(x => x.UserId != userId);
|
|
}
|
|
} |