overthinking repositories from scratch
This commit is contained in:
parent
58271df949
commit
845db13c63
8 changed files with 4 additions and 51 deletions
|
|
@ -4,6 +4,5 @@ namespace SurveyLib.Core.Repositories;
|
|||
|
||||
public interface IAnswerRepository : IGenericRepository<Answer>
|
||||
{
|
||||
Task<IEnumerable<Answer>> GetByAttemptIdAsync(int attemptId);
|
||||
Task<IEnumerable<Answer>> GetByQuestionIdAsync(int questionId);
|
||||
|
||||
}
|
||||
|
|
@ -4,5 +4,5 @@ namespace SurveyLib.Core.Repositories;
|
|||
|
||||
public interface ICompletionRepository : IGenericRepository<Completion>
|
||||
{
|
||||
Task<IEnumerable<Completion>> GetBySurveyIdAsync(int surveyId);
|
||||
|
||||
}
|
||||
|
|
@ -4,6 +4,5 @@ namespace SurveyLib.Core.Repositories;
|
|||
|
||||
public interface IQuestionRepository : IGenericRepository<QuestionBase>
|
||||
{
|
||||
Task<QuestionBase?> GetWithAnswersAsync(int questionId);
|
||||
Task<IEnumerable<QuestionBase>> GetBySurveyIdAsync(int surveyId);
|
||||
|
||||
}
|
||||
|
|
@ -4,7 +4,5 @@ namespace SurveyLib.Core.Repositories;
|
|||
|
||||
public interface ISurveyRepository : IGenericRepository<Survey>
|
||||
{
|
||||
Task<Survey?> GetWithQuestionsAsync(int surveyId);
|
||||
Task<Survey?> GetWithCompletionsAsync(int surveyId);
|
||||
Task<IEnumerable<Survey>> FindByTitleAsync(string title);
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue