public async Task <Student> CreateStudentAsynd(Student student)
        {
            await _smContext.AddAsync(student);

            await _smContext.SaveChangesAsync();

            return(student);
        }
Пример #2
0
        public async Task <Semester> CreateSemesterAsynd(Semester semester)
        {
            await _smContext.AddAsync(semester);

            await _smContext.SaveChangesAsync();

            return(semester);
        }
Пример #3
0
        public async Task <Discipline> CreateDisciplineAsynd(Discipline discipline)
        {
            await _smContext.AddAsync(discipline);

            await _smContext.SaveChangesAsync();

            return(discipline);
        }