示例#1
0
        public async Task <Student> CreateAsync(Student student)
        {
            var newStudent = await _context.Students.AddAsync(student);

            await _context.SaveChangesAsync();

            return(newStudent.Entity);
        }