using API.Authentication.Interfaces; using API.DTO.Base; using DAL.Contexts; using DAL.Models; using DAL.Models.Audits; namespace API.Services { public class EventService : ServiceBase { public EventService(ILogger logger, SASGContext context, IEventAuthentication auth) : base(logger, context, auth) { } public bool? isSignedUp(User user, ulong eventId) { if (!_auth.canCheckSelfSignup(user)) return null; return Context.Set().Any(x => x.userId == user.id && x.eventId == eventId); } } }