コード例 #1
0
 public async Task CreateCoachProfileAsync(Coach profile, CancellationToken ct = default)
 {
     if (profile.User == null)
     {
         throw new Exception("Coach profile should be tied with user.");
     }
     await _coachRepository.CreateAsync(profile, ct);
 }
コード例 #2
0
ファイル: CoachService.cs プロジェクト: QQumba/ESportSchool
 public Task CreateAsync(Coach coach, CancellationToken ct = default)
 {
     return(_coachRepository.CreateAsync(coach, ct));
 }