public ActionResult Detach(string id) { ViewBag.Title = Piranha.Resources.Page.EditTitleExisting; if (EditModel.Detach(new Guid(id))) { SuccessMessage(@Piranha.Resources.Page.MessageDetached); return(View(@"~/Areas/Manager/Views/Page/Edit.cshtml", EditModel.GetById(new Guid(id)))); } else { ErrorMessage(@Piranha.Resources.Page.MessageNotDetached); return(View(@"~/Areas/Manager/Views/Page/EditCopy.cshtml", EditModel.GetById(new Guid(id)))); } }