BistroDriveWebApp.Controllers.ProfileController.EditReview C# (CSharp) Method

EditReview() private method

private EditReview ( UserReviewViewModel model ) : System.Web.Mvc.ActionResult
model BistroDriveWebApp.Models.UserReviewViewModel
return System.Web.Mvc.ActionResult
        public ActionResult EditReview(UserReviewViewModel model)
        {
            string user = User.Identity.GetUserId();
            review rev = DataManager.User.GetReviewById(model.ID_Review);
            if (rev == null || user != rev.Id_Owner)
            {
                return RedirectToAction("index", "profile");
            }
            if (!ModelState.IsValid)
            {
                return View(model);
            }
            DataManager.User.EditUserReview(model.ID_Review, model.Mark, model.Review);
            return RedirectToAction("index", "profile", new { id = model.UserName });
        }

Same methods

ProfileController::EditReview ( int id ) : System.Web.Mvc.ActionResult