adapt repository features to services needs

This commit is contained in:
Вячеслав 2025-05-26 01:02:06 +05:00
parent 3961dbeb69
commit 9f6d5b575e
4 changed files with 18 additions and 1 deletions

View file

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