// [HttpPost] // public IActionResult Details(int id, Rating rating) // { // rating.RatingId = id; // Rating.Put(rating); // return RedirectToAction("Details", id); // } public IActionResult Delete(int id) { Rating.DeleteRating(id); return(RedirectToAction("Places/Details{placeId}")); }