C# Class BusinessLogic.Logic.GamingGroups.GamingGroupSaver

Inheritance: IGamingGroupSaver
Mostra file Open project: NemeStats/NemeStats

Public Methods

Method Description
CreateNewGamingGroup ( string gamingGroupName, TransactionSource registrationSource, ApplicationUser currentUser ) : NewlyCreatedGamingGroupResult
GamingGroupSaver ( IDataContext dataContext, INemeStatsEventTracker eventTracker, IPlayerSaver playerSaver ) : BusinessLogic.DataAccess
UpdatePublicGamingGroupDetails ( GamingGroupEditRequest request, ApplicationUser currentUser ) : GamingGroup

Private Methods

Method Description
AddUserGamingGroupRecord ( ApplicationUser currentUser, GamingGroup newGamingGroup ) : void
AddUserToGamingGroupAsPlayer ( ApplicationUser currentUser ) : Player
AssociateUserWithGamingGroup ( ApplicationUser currentUser, GamingGroup newGamingGroup ) : Player
SetGamingGroupOnCurrentUser ( ApplicationUser currentUser, GamingGroup newGamingGroup ) : void
ValidateGamingGroupName ( string gamingGroupName ) : void

Method Details

CreateNewGamingGroup() public method

public CreateNewGamingGroup ( string gamingGroupName, TransactionSource registrationSource, ApplicationUser currentUser ) : NewlyCreatedGamingGroupResult
gamingGroupName string
registrationSource TransactionSource
currentUser ApplicationUser
return BusinessLogic.Models.GamingGroups.NewlyCreatedGamingGroupResult

GamingGroupSaver() public method

public GamingGroupSaver ( IDataContext dataContext, INemeStatsEventTracker eventTracker, IPlayerSaver playerSaver ) : BusinessLogic.DataAccess
dataContext IDataContext
eventTracker INemeStatsEventTracker
playerSaver IPlayerSaver
return BusinessLogic.DataAccess

UpdatePublicGamingGroupDetails() public method

public UpdatePublicGamingGroupDetails ( GamingGroupEditRequest request, ApplicationUser currentUser ) : GamingGroup
request BusinessLogic.Models.GamingGroups.GamingGroupEditRequest
currentUser ApplicationUser
return GamingGroup