C# Class BusinessLogic.Logic.GameDefinitions.GameDefinitionSaver

Inheritance: IGameDefinitionSaver
Afficher le fichier Open project: NemeStats/NemeStats

Méthodes publiques

Méthode Description
CreateGameDefinition ( CreateGameDefinitionRequest createGameDefinitionRequest, ApplicationUser currentUser ) : GameDefinition
GameDefinitionSaver ( IDataContext dataContext, INemeStatsEventTracker eventTracker, IBoardGameGeekGameDefinitionCreator boardGameGeekGameDefinitionAttacher ) : BusinessLogic.DataAccess
UpdateGameDefinition ( GameDefinitionUpdateRequest gameDefinitionUpdateRequest, ApplicationUser currentUser ) : void

Private Methods

Méthode Description
AttachToBoardGameGeekGameDefinition ( int boardGameGeekGameDefinitionId, ApplicationUser currentUser, GameDefinition gameDefinition ) : void
CreateBoardGameGeekGameDefinition ( int boardGameGeekGameDefinitionId, ApplicationUser currentUser ) : BoardGameGeekGameDefinition
ValidateGameDefinitionNameIsNotNullOrWhitespace ( string gameDefinitionName ) : void
ValidateNotADuplicateGameDefinition ( GameDefinition existingGameDefinition ) : void
ValidateNotNull ( CreateGameDefinitionRequest createGameDefinitionRequest ) : void

Method Details

CreateGameDefinition() public méthode

public CreateGameDefinition ( CreateGameDefinitionRequest createGameDefinitionRequest, ApplicationUser currentUser ) : GameDefinition
createGameDefinitionRequest BusinessLogic.Models.Games.CreateGameDefinitionRequest
currentUser ApplicationUser
Résultat GameDefinition

GameDefinitionSaver() public méthode

public GameDefinitionSaver ( IDataContext dataContext, INemeStatsEventTracker eventTracker, IBoardGameGeekGameDefinitionCreator boardGameGeekGameDefinitionAttacher ) : BusinessLogic.DataAccess
dataContext IDataContext
eventTracker INemeStatsEventTracker
boardGameGeekGameDefinitionAttacher IBoardGameGeekGameDefinitionCreator
Résultat BusinessLogic.DataAccess

UpdateGameDefinition() public méthode

public UpdateGameDefinition ( GameDefinitionUpdateRequest gameDefinitionUpdateRequest, ApplicationUser currentUser ) : void
gameDefinitionUpdateRequest GameDefinitionUpdateRequest
currentUser ApplicationUser
Résultat void