public ActionResult Edit([Bind(Include = "Id,Comment")] ReviewModel model) { ReviewModel review = OAPServiceSystem.GetReview(model.Id); review.Comment = model.Comment; OAPServiceSystem.UpdateReview(review); return(Edit(model.Id)); }
public ActionResult Edit(int id) { ReviewModel review = OAPServiceSystem.GetReview(id); return(View(review)); }