Exemplo n.º 1
0
    private async Task <Guid> CopyClub(Guid copyFromClubId,
                                       ClubRequest request,
                                       bool test)
    {
        var targetClub = new Core.Model.Club
        {
            Name     = request.ClubName,
            Initials = request.ClubInitials + (test ? "TEST" : ""),
            IsHidden = test,
            Url      = request.ClubWebsite,
        };

        return(await _coreClubService.CopyClubAsync(
                   copyFromClubId,
                   targetClub));
    }