public AbstractLittleStackOverflowService( LittleStackOverflowContext context) { _context = context ?? throw new ArgumentNullException(); }
public AnswerService( LittleStackOverflowContext context) : base(context) { }
public AbstractPostEntityService( LittleStackOverflowContext context) : base(context) { }
public QuestionService(LittleStackOverflowContext context) : base(context) { }
public VoteService( LittleStackOverflowContext context) : base(context) { }
public static bool IsMarkedAnswered( LittleStackOverflowContext context, int questionId) => context.Answers.Any(a => a.QuestionId == questionId && a.IsMarkedCorrect);