public ActionResult Create(FormCollection form) { ApiLocation location = new ApiLocation(); location.LocationAddress = form["LocationAddress"]; location.LocationStateProv = form["LocationStateProv"]; if (client.CreateLocation(location)) { return(RedirectToAction("Locations")); } else { return(View(location)); } }