예제 #1
0
        public async Task RegisterStudent(IStudent student)
        {
            if (State.Students == null)
            {
                State.Students = new List <IStudent>();
            }
            State.Students.Add(student);
            await student.Enroll(_me);

            await State.WriteStateAsync();
        }