public async Task DeleteExamSite(int id) { var examSite = await _context.ExamSites.FindAsync(id); _context.ExamSites.Remove(examSite); await _context.SaveChangesAsync(); }
public async void SaveNewExamSession(ExamSessionDto examSessionDto) { _context.Add(await MapFromDto(examSessionDto)); await _context.SaveChangesAsync(); }