예제 #1
0
        public ActionResult Detach(Guid id, byte target)
        {
            if (!Request.IsAuthenticated)
            {
                throw new AuthenticationException();
            }

            var content = ContentService.Detach(id, UserContext.Current.Id, (AttachDetachTarget)target);

            return(Redirect(content.GetUrl()));
        }