// POST protected override DriverResult Editor(AvatarProfilePart part, IUpdateModel updater, dynamic shapeHelper) { updater.TryUpdateModel(part, Prefix, null, null); var postedFile = ((Controller)updater).Request.Files["Avatars_FileUpload"]; if (postedFile != null && !String.IsNullOrEmpty(postedFile.FileName)) { _avatarsService.SaveAvatarFile(part, postedFile); updater.TranscribeValidationDictionaryErrors <AvatarsServiceValidationKey>(_avatarsService.ValidationDictionary); } return(Editor(part, shapeHelper)); }