Ejemplo n.º 1
0
        public RedirectToRouteResult registerProc(Privacy privacy)
        {
            var sanitizer = new HtmlSanitizer();

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