public ActionResult Attach(Guid id, byte target) { if (!Request.IsAuthenticated) { throw new AuthenticationException(); } var content = ContentService.Attach(id, UserContext.Current.Id, (AttachDetachTarget)target); return(Redirect(content.GetUrl())); }