Esempio n. 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);
 }
Esempio n. 2
0
 public Task CreateAsync(Coach coach, CancellationToken ct = default)
 {
     return(_coachRepository.CreateAsync(coach, ct));
 }