Пример #1
0
        public bool AddGame(GameDto game)
        {
            Game newGame = mappingService.GetGameFromGameDto(game);

            games.AddGame(newGame);
            unitOfWork.CompleteWork();
            return(newGame.GameId != 0);
        }
Пример #2
0
 public int Create([FromBody] Games game)
 {
     return(gameobj.AddGame(game));
 }