public async Task DeleteSemesterAsync(Guid id) { var dbRecord = await _smContext.Semesters.FirstOrDefaultAsync(x => x.SemesterId == id); _smContext.Remove(dbRecord); await _smContext.SaveChangesAsync(); }
public async Task DeleteDisciplineAsync(Guid id) { var dbRecord = await _smContext.Disciplines.FirstOrDefaultAsync(x => x.DisciplineId == id); _smContext.Remove(dbRecord); await _smContext.SaveChangesAsync(); }