overthinking repositories from scratch
This commit is contained in:
parent
58271df949
commit
845db13c63
8 changed files with 4 additions and 51 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue