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