overthinking repositories from scratch

This commit is contained in:
Вячеслав 2025-04-16 17:32:24 +05:00
parent 58271df949
commit 845db13c63
8 changed files with 4 additions and 51 deletions

View file

@ -41,9 +41,4 @@ public class CompletionRepository : ICompletionRepository
_context.Completions.Remove(entity);
await _context.SaveChangesAsync();
}
public async Task<IEnumerable<Completion>> GetBySurveyIdAsync(int surveyId)
{
return await _context.Completions.Where(c => c.SurveyId == surveyId).ToListAsync();
}
}