public ActionResult Update(int id, UpdateReviewsViewModel requestedViewModel) { if (ModelState.IsValid) { try { ReviewService.Update(id, requestedViewModel.Title, requestedViewModel.Description, requestedViewModel.Url); if (requestedViewModel.Picture != null) { ReviewService.ChangePicture(id, requestedViewModel.Picture); } Messages.Add("Gemt!", "Anmeldelsen er blvet gemt", Services.MessageType.Success); return(RedirectToAction("Update", new { id = id })); } catch { Messages.AddStandardUpdateError(); return(RedirectToAction("Update", new { id = id })); } } return(View(requestedViewModel)); }