13 lines
367 B
C#
13 lines
367 B
C#
using Ardalis.Specification;
|
|
using BeReadyBackend.Models;
|
|
|
|
namespace BeReadyBackend.Specifications.Achievements;
|
|
|
|
public class GetLockedAchievementsSpec : Specification<Achievement>
|
|
{
|
|
public GetLockedAchievementsSpec(int userId)
|
|
{
|
|
Query
|
|
.Where(x => x.UserAchievements != null && x.UserAchievements.All(y => y.UserId != userId));
|
|
}
|
|
} |