Esempio n. 1
0
        public RedirectToRouteResult registerProc(Credit credit)
        {
            var sanitizer = new HtmlSanitizer();

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