public HttpResponseMessage UpdateGameDefinition(UpdateGameDefinitionMessage updateGameDefinitionMessage, int gameDefinitionId, int gamingGroupId) { if (updateGameDefinitionMessage == null) { return Request.CreateErrorResponse(HttpStatusCode.BadRequest, "You must pass at least one valid parameter."); } var gameDefinitionUpdateRequest = new GameDefinitionUpdateRequest { Active = updateGameDefinitionMessage.Active, Name = updateGameDefinitionMessage.GameDefinitionName, BoardGameGeekGameDefinitionId = updateGameDefinitionMessage.BoardGameGeekGameDefinitionId, GameDefinitionId = gameDefinitionId }; gameDefinitionSaver.UpdateGameDefinition(gameDefinitionUpdateRequest, CurrentUser); return Request.CreateResponse(HttpStatusCode.NoContent); }
public HttpResponseMessage UpdateGameDefinition(UpdateGameDefinitionMessage updateGameDefinitionMessage, int gameDefinitionId) { return this.UpdateGameDefinition(updateGameDefinitionMessage, gameDefinitionId, CurrentUser.CurrentGamingGroupId); }