Example #1
0
        public RedirectToRouteResult modifyProc(Privacy privacy)
        {
            var sanitizer = new HtmlSanitizer();

            privacy.contents = sanitizer.Sanitize(privacy.contents);
            privacy.uptId    = System.Web.HttpContext.Current.User.Identity.Name;
            privacyService.updatePrivacy(privacy);
            return(RedirectToAction("list"));
        }