public async Task AddAsync(SurveyUserIdentifier surveyUserIdentifier) { await _context.AddAsync(surveyUserIdentifier); await _context.SaveChangesAsync(); }
public async Task UpdateAsync(SurveyUserIdentifier surveyUserIdentifier) { _context.Update(surveyUserIdentifier); await _context.SaveChangesAsync(); }
public async Task CreateAsync(string userEmail, int surveyId) { var identifier = new SurveyUserIdentifier(userEmail, surveyId); await _surveyUserIdentifierRepository.AddAsync(identifier); }