Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        public ActionResult Edit(int id)
        {
            ReviewModel review = OAPServiceSystem.GetReview(id);

            return(View(review));
        }