public ActionResult Create(Movie movie) { if (ModelState.IsValid) { gateway.CreateMovie(movie); } return RedirectToAction("Index"); }
public HttpResponseMessage CreateMovie(Movie movie) { HttpResponseMessage response = client.PostAsJsonAsync("api/movies/", movie).Result; return response; }