public ActionResult CreateImage(Gallery image) { string message = ""; if (GalleryService.AddImage(image, out message)) { return(RedirectToAction("Index")); } else { return(RedirectToAction("CreateImage", new { image = image, message = message })); } }