Example #1
0
        public ActionResult EditContent(string contentId, int profileId)
        {
            var contentItem = _reader.GetContentItem(Convert.ToInt32(contentId));

            contentItem.ProfileName = _reader.GetProfiles().FirstOrDefault(x => x.Id == profileId).Name;

            if (HttpContext.Request.UrlReferrer != null)
            {
                contentItem.ReturnUrl = HttpContext.Request.UrlReferrer.ToString();
            }

            return(View("EditContent", contentItem));
        }