Exemple #1
0
        public RedirectToRouteResult modifyProc(Credit credit)
        {
            var sanitizer = new HtmlSanitizer();

            credit.contents = sanitizer.Sanitize(credit.contents);
            credit.uptId    = System.Web.HttpContext.Current.User.Identity.Name;
            creditService.updateCredit(credit);
            return(RedirectToAction("list"));
        }