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