public ActionResult Create(int id, FormCollection collection) { try { if (ModelState.IsValid) { Models.Review temp = new Models.Review { Comment = collection["Comment"], Rating = double.Parse(collection["Rating"]), RestaurantId = id }; da.InsertReview(temp); return(RedirectToAction("Details", new { id = temp.RestaurantId })); } return(View()); } catch { return(View()); } }