public bool AddGame(GameDto game) { Game newGame = mappingService.GetGameFromGameDto(game); games.AddGame(newGame); unitOfWork.CompleteWork(); return(newGame.GameId != 0); }
public int Create([FromBody] Games game) { return(gameobj.AddGame(game)); }