Im trying to post some information in my api which is programmed using WCF Web Api. In the client, I'm using restsharp which is a rest client for restful services. However, when I try to post adding some parameters to the request, the post method in the service is never called, and my response object in the client gets a 500 status (internal server error), but when I comment the lines where I'm adding parameters the request reaches the post method exposed in the service.

Here's the code from the client:

```
[HttpPost]
    public ActionResult Create(Game game)
    {
        if (ModelState.IsValid)
        {
            var request = new RestRequest(Method.POST);
            var restClient = new RestClient();
            restClient.BaseUrl = "http://localhost:4778";
            request.Resource = "games";
            //request.AddParameter("Name", game.Name,ParameterType.GetOrPost); this is te line when commented     everything works fine
            RestResponse<Game> g = restClient.Execute<Game>(request);
            return RedirectToAction("Details", new {id=g.Data.Id });
        }
        return View(game);
    }

```

Here's the code for the service:

```
[WebInvoke(UriTemplate = "", Method = "POST")]
    public HttpResponseMessage<Game> Post(Game game, HttpRequestMessage<Game> request)
    {
        if (null == game)
        {
            return new HttpResponseMessage<Game>(HttpStatusCode.BadRequest);
        }
        var db = new XBoxGames();
        game = db.Games.Add(game);
        db.SaveChanges();

        HttpResponseMessage<Game> response = new HttpResponseMessage<Game>(game);
        response.StatusCode = HttpStatusCode.Created;

        var uriBuilder = new UriBuilder(request.RequestUri);
        uriBuilder.Path = string.Format("games/{0}", game.Id);
        response.Headers.Location = uriBuilder.Uri;
        return response;
    }

```

I need to add parameters to my request so the game object in the service gets populated, but I dont know how to do this, if the service breaks every time I try to add parameters.

I forgot to mention that both client and server are .NET MVC 3 applications. 

Any help would be appreciate it. Thanks in advance.