protected override DriverResult Editor(CaptchaPart part, IUpdateModel updater, dynamic shapeHelper) { var captchaEVM = new CaptchaEditViewModel(); if (updater.TryUpdateModel(captchaEVM, Prefix, null, null)) { if (_captchaService.IsCaptchaValid(captchaEVM.Captcha.Guid, captchaEVM.Value)) { } else { updater.AddModelError("Captcha", T("Captcha is invalid.")); } } else { updater.AddModelError("Captcha", T("Captcha error.")); } return(Editor(part, shapeHelper)); }