Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public ActionResult Submit(BlogPostAddCommentViewModel model) { if (!ModelState.IsValid) { return(CurrentUmbracoPage()); } if (!CaptchaHelper.ReCaptchaPassed(Request.Form["captcha"])) { ModelState.AddModelError(string.Empty, "You failed the CAPTCHA."); return(CurrentUmbracoPage()); } var member = Members.GetCurrentMember(); _blogPostCommentsRepository.PostComment(model.BlogPostId, member.Id, model.Comment); return(RedirectToCurrentUmbracoPage()); }