public async Task <ValidationResultVm> ValidationAsync(AppUserUpdateVm appUserVm)
        {
            _appUserVm = appUserVm;

            await DoValidationAsync();

            return(ValidationResultVm);
        }
        public async Task <ResultModel <bool> > UpdateAsync(AppUserUpdateVm appUserVm)
        {
            await ValidationUpdateVmAsync(appUserVm);

            if (HasError)
            {
                return(CreateInvalidResult <bool>());
            }

            var result = await _appUserService.UpdateCustomVmAsync(appUserVm);

            return(result ?
                   CreateSuccessResult(true) :
                   CreateInvalidResult <bool>());
        }
 private async Task ValidationUpdateVmAsync(AppUserUpdateVm userUpdateVm)
 {
     ValidationResultVm = await _appUserUpdateVmValidationService
                          .ValidationAsync(userUpdateVm);
 }