Example #1
0
        public async Task DeleteSemesterAsync(Guid id)
        {
            var dbRecord = await _smContext.Semesters.FirstOrDefaultAsync(x => x.SemesterId == id);

            _smContext.Remove(dbRecord);
            await _smContext.SaveChangesAsync();
        }
Example #2
0
        public async Task DeleteDisciplineAsync(Guid id)
        {
            var dbRecord = await _smContext.Disciplines.FirstOrDefaultAsync(x => x.DisciplineId == id);

            _smContext.Remove(dbRecord);
            await _smContext.SaveChangesAsync();
        }