Ejemplo n.º 1
0
        public bool AddGame(GameDto game)
        {
            Game newGame = mappingService.GetGameFromGameDto(game);

            games.AddGame(newGame);
            unitOfWork.CompleteWork();
            return(newGame.GameId != 0);
        }
Ejemplo n.º 2
0
 public int Create([FromBody] Games game)
 {
     return(gameobj.AddGame(game));
 }