Ejemplo n.º 1
0
        public GameProcess Create(int clubId)
        {
            var club = _clubRepository.FindBy(c => c.Id == clubId).First();

            var gameProcess = new GameProcess
            {
                StartDateTime = DateTime,
                Account       = new Account(),
                Club          = club
            };

            _gameProcessRepository.Add(gameProcess);
            _gameProcessRepository.Save();

            return(gameProcess);
        }